My Project
|
全ての指手を生成 More...
#include <effect_action.h>
Public Member Functions | |
AlwaysMove (const NumEffectState &s, Action &a) | |
template<Player P, Ptype Type> | |
void | doActionPtype (Piece p1, Square to) |
Ptypeをtemplate引数にできる場合 | |
template<Player P> | |
void | doAction (Piece p1, Square to) |
Ptypeをtemplate引数にできない場合 | |
bool | done () const |
Private Attributes | |
const NumEffectState & | state |
Action & | ac |
全ての指手を生成
Definition at line 13 of file effect_action.h.
|
inline |
Definition at line 19 of file effect_action.h.
|
inline |
Ptypeをtemplate引数にできない場合
Definition at line 42 of file effect_action.h.
References osl::effect_action::AlwaysMove< Action >::ac, osl::PtypeTable::canDropTo(), osl::Square::canPromote(), osl::canPromote(), osl::SimpleState::pieceAt(), osl::promote(), osl::Piece::ptype(), osl::Ptype_Table, osl::Piece::square(), and osl::effect_action::AlwaysMove< Action >::state.
|
inline |
Ptypeをtemplate引数にできる場合
Definition at line 24 of file effect_action.h.
References osl::effect_action::AlwaysMove< Action >::ac, osl::Square::canPromote(), osl::canPromote(), osl::Piece::isPromotedNotKingGold(), osl::SimpleState::pieceAt(), osl::promote(), osl::Piece::ptype(), osl::Piece::square(), osl::effect_action::AlwaysMove< Action >::state, and osl::unpromote().
|
inline |
Definition at line 71 of file effect_action.h.
|
private |
Definition at line 17 of file effect_action.h.
Referenced by osl::effect_action::AlwaysMove< Action >::doAction(), and osl::effect_action::AlwaysMove< Action >::doActionPtype().
|
private |
Definition at line 16 of file effect_action.h.
Referenced by osl::effect_action::AlwaysMove< Action >::doAction(), and osl::effect_action::AlwaysMove< Action >::doActionPtype().