成った方が良い駒は成る手のみ生成 More...
#include <betterToPromote.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引数にできない場合 More... | |
Private Member Functions | |
BOOST_CLASS_REQUIRE (Action, osl::move_action, Concept) | |
Private Attributes | |
const NumEffectState & | state |
Action & | ac |
成った方が良い駒は成る手のみ生成
Definition at line 12 of file betterToPromote.h.
|
inline |
Definition at line 19 of file betterToPromote.h.
|
private |
|
inline |
Ptypeをtemplate引数にできない場合
Definition at line 47 of file betterToPromote.h.
References osl::effect_action::BetterToPromote< Action >::ac, osl::PtypeTable::canDropTo(), osl::PtypePlayerTraits< T, P >::canDropTo(), osl::canPromote(), osl::Square::canPromote(), osl::PtypeTable::isBetterToPromote(), osl::LANCE, osl::promote(), osl::Piece::ptype(), osl::Ptype_Table, osl::Piece::square(), osl::effect_action::BetterToPromote< Action >::state, and target.
|
inline |
Definition at line 24 of file betterToPromote.h.
References osl::effect_action::BetterToPromote< Action >::ac, osl::PtypePlayerTraits< T, P >::canDropTo(), osl::canPromote(), osl::Square::canPromote(), osl::Piece::isPromotedNotKingGold(), osl::LANCE, osl::promote(), osl::Piece::ptype(), osl::Piece::square(), osl::effect_action::BetterToPromote< Action >::state, target, and osl::unpromote().
|
private |
Definition at line 17 of file betterToPromote.h.
Referenced by osl::effect_action::BetterToPromote< Action >::doAction(), and osl::effect_action::BetterToPromote< Action >::doActionPtype().
|
private |
Definition at line 16 of file betterToPromote.h.
Referenced by osl::effect_action::BetterToPromote< Action >::doAction(), and osl::effect_action::BetterToPromote< Action >::doActionPtype().