説明を見る。00001 #include "osl/move_generator/pieceOnBoard.h"
00002 #include "osl/move_generator/pieceOnBoard.tcc"
00003
00004 namespace osl
00005 {
00006 namespace move_generator
00007 {
00008
00009 template void PieceOnBoard<move_action::Store>::generate<BLACK,false>(const NumEffectState&,Piece,move_action::Store&,int);
00010 template void PieceOnBoard<move_action::Store>::generate<WHITE,false>(const NumEffectState&,Piece,move_action::Store&,int);
00011 template void PieceOnBoard<move_action::Store>::generatePtype<BLACK,KING,false>(const NumEffectState&,Piece,move_action::Store&,int);
00012 template void PieceOnBoard<move_action::Store>::generatePtype<WHITE,KING,false>(const NumEffectState&,Piece,move_action::Store&,int);
00013
00014 template void PieceOnBoard<move_action::Store,true>::generate<BLACK,true>(const NumEffectState&,Piece,move_action::Store&,int);
00015 template void PieceOnBoard<move_action::Store,true>::generate<WHITE,true>(const NumEffectState&,Piece,move_action::Store&,int);
00016 }
00017 }
00018
00019 void osl::move_generator::GeneratePieceOnBoard::
00020 generate(Player turn, const NumEffectState& state, Piece target, MoveVector& out)
00021 {
00022 move_action::Store store(out);
00023 if (turn == BLACK)
00024 PieceOnBoard<move_action::Store>::generate<BLACK,false>(state, target, store);
00025 else
00026 PieceOnBoard<move_action::Store>::generate<WHITE,false>(state, target, store);
00027 }
00028
00029
00030
00031