説明を見る。00001 #ifndef _GENERATE_OPEN_MOVES_TCC
00002 #define _GENERATE_OPEN_MOVES_TCC
00003
00004 #include "osl/move_generator/open.h"
00005 #include "osl/move_generator/pieceOnBoard.tcc"
00006 #include "osl/move_generator/move_action.h"
00007
00008 template<class Action>
00009 template<osl::Player P>
00010 void osl::move_generator::Open<Action>::
00011 generate(const NumEffectState& state,Piece p,Action& action,Square to,Direction dir)
00012 {
00013 typedef move_action::NoAddEffectFilter<Action> action_t;
00014 action_t newAction(state,action,to);
00015 PieceOnBoard<action_t>::template generate<P,true>(state,p,newAction,1<<primDir(dir));
00016 }
00017
00018 #endif
00019
00020
00021
00022