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 SimpleState& state, Action& action)
00014 {
00015 PieceOnBoardType<P, KING>::template
00016 generate<Action>(state, state.getKingPiece<P>(), action);
00017 }
00018
00019 };
00020 }
00021 }
00022
00023 #endif
00024
00025
00026
00027