pinnedGeneral.h
Go to the documentation of this file.
00001 /* pinnedGeneral.h
00002  */
00003 #ifndef OSL_MOVE_PROBABILITY_PINNEDGENERAL_H
00004 #define OSL_MOVE_PROBABILITY_PINNEDGENERAL_H
00005 #include "osl/piece.h"
00006 
00007 namespace osl
00008 {
00009   namespace move_probability
00010   {
00011     struct PinnedGeneral
00012     {
00013       Piece general, covered;
00014       Square attack;
00015       PinnedGeneral(Piece g, Piece c, Square a) : general(g), covered(c), attack(a)
00016       {
00017       }
00018       PinnedGeneral() {}
00019     };
00020     inline bool operator==(const PinnedGeneral& l, const PinnedGeneral& r) 
00021     {
00022       return l.general == r.general && l.covered == r.covered && l.attack == r.attack;
00023     }
00024   }
00025 }
00026 
00027 #endif /* OSL_MOVE_PROBABILITY_PINNEDGENERAL_H */
00028 // ;;; Local Variables:
00029 // ;;; mode:c++
00030 // ;;; c-basic-offset:2
00031 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines