Go to the documentation of this file.
3 #ifndef OSL_DIRECTIONTRAITS_H
4 #define OSL_DIRECTIONTRAITS_H
12 template<Direction Dir>
17 static const int blackDx=1;
18 static const int blackDy=-1;
19 static const bool canPromoteTo=
true;
23 static const int ptypeMask=
30 static const int blackDx=0;
31 static const int blackDy=-1;
32 static const bool canPromoteTo=
true;
36 static const int ptypeMask=
43 static const int blackDx=-1;
44 static const int blackDy=-1;
45 static const bool canPromoteTo=
true;
49 static const int ptypeMask=
55 static const int blackDx=1;
56 static const int blackDy=0;
57 static const bool canPromoteTo=
false;
61 static const int ptypeMask=
67 static const int blackDx=-1;
68 static const int blackDy=0;
69 static const bool canPromoteTo=
false;
73 static const int ptypeMask=
79 static const int blackDx=1;
80 static const int blackDy=1;
81 static const bool canPromoteTo=
false;
85 static const int ptypeMask=
90 static const int blackDx=0;
91 static const int blackDy=1;
92 static const bool canPromoteTo=
false;
96 static const int ptypeMask=
102 static const int blackDx=-1;
103 static const int blackDy=1;
104 static const bool canPromoteTo=
false;
108 static const int ptypeMask=
113 static const int blackDx=1;
114 static const int blackDy=-2;
115 static const bool canPromoteTo=
true;
120 static const int ptypeMask=
125 static const int blackDx=-1;
126 static const int blackDy=-2;
127 static const bool canPromoteTo=
true;
132 static const int ptypeMask=
138 static const bool canPromoteTo=
true;
144 static const int ptypeMask=
150 static const bool canPromoteTo=
true;
156 static const int ptypeMask=
162 static const bool canPromoteTo=
true;
168 static const int ptypeMask=
173 static const bool canPromoteTo=
false;
179 static const int ptypeMask=
184 static const bool canPromoteTo=
false;
190 static const int ptypeMask=
195 static const bool canPromoteTo=
false;
201 static const int ptypeMask=
206 static const bool canPromoteTo=
false;
212 static const int ptypeMask=
217 static const bool canPromoteTo=
false;
223 static const int ptypeMask=
226 template<Direction Dir>
229 static const unsigned int mask=1<<
static_cast<int>(Dir);
243 template<Direction Dir,Player P>
246 template<Direction Dir>
253 template<Direction Dir>
256 template<Direction Dir>
263 template<Direction Dir>
266 template <Player P, Direction D>