00001 #ifndef _GENERATE_KING_WALK_H
00002 #define _GENERATE_KING_WALK_H
00003 #include "osl/move_generator/pieceOnBoard.h"
00004
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.getKingPiece<P>(),action);
00016 }
00017
00018 };
00019 }
00020 }
00021
00022 #endif
00023
00024
00025
00026