pieceOnBoard.cc
Go to the documentation of this file.
#include "osl/move_generator/pieceOnBoard.h"
#include "osl/move_generator/pieceOnBoard.tcc"
namespace osl
{
namespace move_generator
{
// explicit template instantiation
template void PieceOnBoard<move_action::Store>::generate<BLACK,false>(const NumEffectState&,Piece,move_action::Store&,int);
template void PieceOnBoard<move_action::Store>::generate<WHITE,false>(const NumEffectState&,Piece,move_action::Store&,int);
template void PieceOnBoard<move_action::Store>::generatePtype<BLACK,KING,false>(const NumEffectState&,Piece,move_action::Store&,int);
template void PieceOnBoard<move_action::Store>::generatePtype<WHITE,KING,false>(const NumEffectState&,Piece,move_action::Store&,int);
template void PieceOnBoard<move_action::Store,true>::generate<BLACK,true>(const NumEffectState&,Piece,move_action::Store&,int);
template void PieceOnBoard<move_action::Store,true>::generate<WHITE,true>(const NumEffectState&,Piece,move_action::Store&,int);
} // namespace move_generator
} // namespace osl
void osl::move_generator::GeneratePieceOnBoard::
generate(Player turn, const NumEffectState& state, Piece target, MoveVector& out)
{
move_action::Store store(out);
if (turn == BLACK)
PieceOnBoard<move_action::Store>::generate<BLACK,false>(state, target, store);
else
PieceOnBoard<move_action::Store>::generate<WHITE,false>(state, target, store);
}
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::MoveVector
Definition container.h:293
osl::NumEffectState
利きを持つ局面
Definition numEffectState.h:34
osl::Piece
駒.
Definition basic_type.h:788
osl::move_generator
Definition addEffectWithEffect.cc:10
osl
Definition additionalEffect.h:6
osl::Player
Player
Definition basic_type.h:8
osl::BLACK
@ BLACK
Definition basic_type.h:9
pieceOnBoard.h
pieceOnBoard.tcc
osl::move_action::Store
指手を MoveVector に保管
Definition move_action.h:16
osl::move_generator::GeneratePieceOnBoard::generate
static void generate(Player turn, const NumEffectState &state, Piece target, MoveVector &)
Definition pieceOnBoard.cc:20
osl::move_generator::PieceOnBoard::generatePtype
static void generatePtype(const NumEffectState &state, Piece p, Action &action, int dirMask=0)
Generate moves without stating the Ptype as template param.
osl::move_generator::PieceOnBoard::generate
static void generate(const NumEffectState &state, Piece p, Action &action, int dirMask=0)
Generate moves without stating the Ptype as template param.