from に利きのある手を取る More...
#include <captureFrom.h>
Public Member Functions | |
BOOST_CLASS_REQUIRE (OrigAction, osl::move_action, Concept) | |
CaptureFrom (const NumEffectState &s, OrigAction &action) | |
template<Player PP> | |
void | doAction (Piece const &p, Square const &) |
void | simpleMove (Square from, Square to, Ptype ptype, bool isPromote, Player p, Move move) |
void | unknownMove (Square from, Square to, Piece p1, Ptype ptype, bool isPromote, Player p, Move move) |
void | dropMove (Square to, Ptype ptype, Player p, Move move) |
dropMove では取れない | |
void | simpleMove (Square from, Square to, Ptype ptype, bool isPromote, Player p) |
void | unknownMove (Square from, Square to, Piece captured, Ptype ptype, bool isPromote, Player p) |
void | dropMove (Square to, Ptype ptype, Player p) |
Public Attributes | |
const NumEffectState & | state |
OrigAction & | action |
from に利きのある手を取る
Definition at line 20 of file captureFrom.h.
osl::move_action::CaptureFrom< P, OrigAction >::CaptureFrom | ( | const NumEffectState & | s, |
OrigAction & | action | ||
) | [inline] |
Definition at line 27 of file captureFrom.h.
osl::move_action::CaptureFrom< P, OrigAction >::BOOST_CLASS_REQUIRE | ( | OrigAction | , |
osl::move_action | , | ||
Concept | |||
) |
void osl::move_action::CaptureFrom< P, OrigAction >::doAction | ( | Piece const & | p, |
Square const & | |||
) | [inline] |
Definition at line 34 of file captureFrom.h.
References osl::move_action::CaptureFrom< P, OrigAction >::action, osl::Piece::square(), and osl::move_action::CaptureFrom< P, OrigAction >::state.
void osl::move_action::CaptureFrom< P, OrigAction >::dropMove | ( | Square | to, |
Ptype | ptype, | ||
Player | p, | ||
Move | move | ||
) | [inline] |
dropMove では取れない
Definition at line 59 of file captureFrom.h.
Referenced by osl::move_action::CaptureFrom< P, OrigAction >::dropMove().
void osl::move_action::CaptureFrom< P, OrigAction >::dropMove | ( | Square | to, |
Ptype | ptype, | ||
Player | p | ||
) | [inline] |
Definition at line 74 of file captureFrom.h.
References osl::move_action::CaptureFrom< P, OrigAction >::dropMove().
void osl::move_action::CaptureFrom< P, OrigAction >::simpleMove | ( | Square | from, |
Square | to, | ||
Ptype | ptype, | ||
bool | isPromote, | ||
Player | p, | ||
Move | move | ||
) | [inline] |
Definition at line 41 of file captureFrom.h.
References osl::move_action::CaptureFrom< P, OrigAction >::action, and osl::move_action::CaptureFrom< P, OrigAction >::state.
Referenced by osl::move_action::CaptureFrom< P, OrigAction >::simpleMove().
void osl::move_action::CaptureFrom< P, OrigAction >::simpleMove | ( | Square | from, |
Square | to, | ||
Ptype | ptype, | ||
bool | isPromote, | ||
Player | p | ||
) | [inline] |
Definition at line 64 of file captureFrom.h.
References osl::move_action::CaptureFrom< P, OrigAction >::simpleMove().
void osl::move_action::CaptureFrom< P, OrigAction >::unknownMove | ( | Square | from, |
Square | to, | ||
Piece | p1, | ||
Ptype | ptype, | ||
bool | isPromote, | ||
Player | p, | ||
Move | move | ||
) | [inline] |
Definition at line 49 of file captureFrom.h.
References osl::move_action::CaptureFrom< P, OrigAction >::action, and osl::move_action::CaptureFrom< P, OrigAction >::state.
Referenced by osl::move_action::CaptureFrom< P, OrigAction >::unknownMove().
void osl::move_action::CaptureFrom< P, OrigAction >::unknownMove | ( | Square | from, |
Square | to, | ||
Piece | captured, | ||
Ptype | ptype, | ||
bool | isPromote, | ||
Player | p | ||
) | [inline] |
Definition at line 69 of file captureFrom.h.
References osl::move_action::CaptureFrom< P, OrigAction >::unknownMove().
OrigAction& osl::move_action::CaptureFrom< P, OrigAction >::action |
Definition at line 24 of file captureFrom.h.
Referenced by osl::move_action::CaptureFrom< P, OrigAction >::doAction(), osl::move_action::CaptureFrom< P, OrigAction >::simpleMove(), and osl::move_action::CaptureFrom< P, OrigAction >::unknownMove().
const NumEffectState& osl::move_action::CaptureFrom< P, OrigAction >::state |
Definition at line 23 of file captureFrom.h.
Referenced by osl::move_action::CaptureFrom< P, OrigAction >::doAction(), osl::move_action::CaptureFrom< P, OrigAction >::simpleMove(), and osl::move_action::CaptureFrom< P, OrigAction >::unknownMove().