All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
trapRook.h
Go to the documentation of this file.
1 /* trapRook.h
2  */
3 #ifndef OSL_MOVE_CLASSIFIER_TRAPROOK_H
4 #define OSL_MOVE_CLASSIFIER_TRAPROOK_H
5 
7 namespace osl
8 {
9  namespace move_classifier
10  {
14  template <Player P>
15  struct TrapRook
16  {
17  static bool
18 #ifdef __GNUC__
19  __attribute__ ((pure))
20 #endif
21  isMember(const NumEffectState& state,
22  Ptype ptype,Square from,Square to);
23  private:
24  template <Direction Dir>
25  static bool
26 #ifdef __GNUC__
27  __attribute__ ((pure))
28 #endif
29  testDirection(const NumEffectState& state, Square initial);
30  };
31  } // namespace move_classifier
32 } // namespace osl
33 
34 
35 #endif /* OSL_MOVE_CLASSIFIER_TRAPROOK_H */
36 // ;;; Local Variables:
37 // ;;; mode:c++
38 // ;;; c-basic-offset:2
39 // ;;; coding:utf-8
40 // ;;; End: