My Project
|
成った方が良い駒は成る手のみ生成 More...
#include <effect_action.h>
Public Member Functions | |
BetterToPromote (const NumEffectState &s, Action &a) | |
template<Player P, Ptype Type> | |
void | doActionPtype (Piece p1, Square to) |
template<Player P> | |
void | doAction (Piece p1, Square to) |
Ptypeをtemplate引数にできない場合 | |
Private Attributes | |
const NumEffectState & | state |
Action & | ac |
成った方が良い駒は成る手のみ生成
Definition at line 78 of file effect_action.h.
|
inline |
Definition at line 84 of file effect_action.h.
|
inline |
Ptypeをtemplate引数にできない場合
Definition at line 112 of file effect_action.h.
References osl::effect_action::BetterToPromote< Action >::ac, osl::PtypeTable::canDropTo(), osl::Square::canPromote(), osl::canPromote(), osl::PtypeTable::isBetterToPromote(), osl::LANCE, osl::SimpleState::pieceAt(), osl::promote(), osl::Piece::ptype(), osl::Ptype_Table, osl::Piece::square(), and osl::effect_action::BetterToPromote< Action >::state.
|
inline |
Definition at line 89 of file effect_action.h.
References osl::effect_action::BetterToPromote< Action >::ac, osl::Square::canPromote(), osl::canPromote(), osl::Piece::isPromotedNotKingGold(), osl::LANCE, osl::SimpleState::pieceAt(), osl::promote(), osl::Piece::ptype(), osl::Piece::square(), osl::effect_action::BetterToPromote< Action >::state, and osl::unpromote().
|
private |
Definition at line 82 of file effect_action.h.
Referenced by osl::effect_action::BetterToPromote< Action >::doAction(), and osl::effect_action::BetterToPromote< Action >::doActionPtype().
|
private |
Definition at line 81 of file effect_action.h.
Referenced by osl::effect_action::BetterToPromote< Action >::doAction(), and osl::effect_action::BetterToPromote< Action >::doActionPtype().