kingWalk.h
Go to the documentation of this file.
00001 #ifndef _GENERATE_KING_WALK_H
00002 #define _GENERATE_KING_WALK_H
00003 #include "osl/move_generator/pieceOnBoard.h"
00004 //#include "osl/state/simpleState.h"
00005 namespace osl
00006 {
00007   namespace move_generator
00008   {
00009     template <Player P>
00010     struct KingWalk
00011     {
00012       template <class Action>
00013       static void generate(const NumEffectState& state, Action& action)
00014       {
00015         PieceOnBoard<Action>::template generatePtype<P,KING>(state,state.kingPiece<P>(),action);
00016       }
00017       
00018     };
00019   }
00020 } // namespace osl
00021 
00022 #endif /* _GENERATE_KING_WALK_H */
00023 // ;;; Local Variables:
00024 // ;;; mode:c++
00025 // ;;; c-basic-offset:2
00026 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines