成った方が良い駒は成る手のみ生成 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引数にできない場合 | |
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.
osl::effect_action::BetterToPromote< Action >::BetterToPromote | ( | const NumEffectState & | s, |
Action & | a | ||
) | [inline] |
Definition at line 19 of file betterToPromote.h.
osl::effect_action::BetterToPromote< Action >::BOOST_CLASS_REQUIRE | ( | Action | , |
osl::move_action | , | ||
Concept | |||
) | [private] |
void osl::effect_action::BetterToPromote< Action >::doAction | ( | Piece | p1, |
Square | to | ||
) | [inline] |
Ptypeをtemplate引数にできない場合
Definition at line 47 of file betterToPromote.h.
References osl::effect_action::BetterToPromote< Action >::ac, osl::PtypeTable::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.
void osl::effect_action::BetterToPromote< Action >::doActionPtype | ( | Piece | p1, |
Square | to | ||
) | [inline] |
Definition at line 24 of file betterToPromote.h.
References osl::effect_action::BetterToPromote< Action >::ac, 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().
Action& osl::effect_action::BetterToPromote< Action >::ac [private] |
Definition at line 17 of file betterToPromote.h.
Referenced by osl::effect_action::BetterToPromote< Action >::doAction(), and osl::effect_action::BetterToPromote< Action >::doActionPtype().
const NumEffectState& osl::effect_action::BetterToPromote< Action >::state [private] |
Definition at line 16 of file betterToPromote.h.
Referenced by osl::effect_action::BetterToPromote< Action >::doAction(), and osl::effect_action::BetterToPromote< Action >::doActionPtype().