pinnedGeneral.h Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pinnedGeneral.h
Go to the documentation of this file.
1 /* pinnedGeneral.h
2 */
3 #ifndef OSL_MOVE_PROBABILITY_PINNEDGENERAL_H
4 #define OSL_MOVE_PROBABILITY_PINNEDGENERAL_H
5 #include "osl/piece.h"
6
7 namespace osl
8 {
9 namespace move_probability
10 {
11 struct PinnedGeneral
12 {
13 Piece general, covered;
14 Square attack;
15 PinnedGeneral(Piece g, Piece c, Square a) : general(g), covered(c), attack(a)
16 {
17 }
18 PinnedGeneral() {}
19 };
20 inline bool operator==(const PinnedGeneral& l, const PinnedGeneral& r)
21 {
22 return l.general == r.general && l.covered == r.covered && l.attack == r.attack;
23 }
24 }
25 }
26
27 #endif /* OSL_MOVE_PROBABILITY_PINNEDGENERAL_H */
28 // ;;; Local Variables:
29 // ;;; mode:c++
30 // ;;; c-basic-offset:2
31 // ;;; End: