promote可能な場合は promoteしない手は生成しない More...
#include <simpleBetterToPromote.h>
Public Member Functions | |
SimpleBetterToPromote (Action &a) | |
template<Player P, Ptype Type> | |
void | doActionPtype (Piece p1, Square to) |
template<Player P> | |
void | doAction (Piece p1, Square to) |
bool | done () const |
Private Member Functions | |
BOOST_CLASS_REQUIRE (Action, osl::move_action, Concept) | |
Private Attributes | |
Action & | ac |
promote可能な場合は promoteしない手は生成しない
Definition at line 13 of file simpleBetterToPromote.h.
osl::effect_action::SimpleBetterToPromote< Action >::SimpleBetterToPromote | ( | Action & | a | ) | [inline] |
Definition at line 19 of file simpleBetterToPromote.h.
osl::effect_action::SimpleBetterToPromote< Action >::BOOST_CLASS_REQUIRE | ( | Action | , |
osl::move_action | , | ||
Concept | |||
) | [private] |
void osl::effect_action::SimpleBetterToPromote< Action >::doAction | ( | Piece | p1, |
Square | to | ||
) | [inline] |
Definition at line 30 of file simpleBetterToPromote.h.
References osl::effect_action::SimpleBetterToPromote< Action >::ac, osl::Square::canPromote(), osl::isPromoted(), osl::promote(), osl::Piece::ptype(), and osl::Piece::square().
void osl::effect_action::SimpleBetterToPromote< Action >::doActionPtype | ( | Piece | p1, |
Square | to | ||
) | [inline] |
Definition at line 21 of file simpleBetterToPromote.h.
References osl::effect_action::SimpleBetterToPromote< Action >::ac, osl::Square::canPromote(), osl::isPromoted(), osl::promote(), osl::Piece::ptype(), and osl::Piece::square().
bool osl::effect_action::SimpleBetterToPromote< Action >::done | ( | ) | const [inline] |
Definition at line 38 of file simpleBetterToPromote.h.
Action& osl::effect_action::SimpleBetterToPromote< Action >::ac [private] |
Definition at line 17 of file simpleBetterToPromote.h.
Referenced by osl::effect_action::SimpleBetterToPromote< Action >::doAction(), and osl::effect_action::SimpleBetterToPromote< Action >::doActionPtype().