指手を MoveVector に保管 [詳細]
#include <store.h>

Public メソッド | |
| template<size_t Capacity> | |
| Store (FixedCapacityVector< Move, Capacity > &v) | |
| void | simpleMove (Position, Position, Ptype, bool, Player, Move move) |
| コマをとらないMove | |
| void | unknownMove (Position, Position, Piece, Ptype, bool, Player, Move move) |
| コマを取るかもしれないMove | |
| void | dropMove (Position, Ptype, Player, Move move) |
| コマを打つMove | |
| void | simpleMove (Position from, Position to, Ptype ptype, bool isPromote, Player p) |
| void | unknownMove (Position from, Position to, Piece captured, Ptype ptype, bool isPromote, Player p) |
| void | dropMove (Position to, Ptype ptype, Player p) |
Public 変数 | |
| FixedCapacityVectorPushBack< Move > | moves |
指手を MoveVector に保管
| osl::move_action::Store::Store | ( | FixedCapacityVector< Move, Capacity > & | v | ) | [inline, explicit] |
参照先 dropMove().
| void osl::move_action::Store::simpleMove | ( | Position | from, | |
| Position | to, | |||
| Ptype | ptype, | |||
| bool | isPromote, | |||
| Player | p | |||
| ) | [inline] |
参照先 osl::PTYPE_EMPTY, と simpleMove().
| void osl::move_action::Store::unknownMove | ( | Position | from, | |
| Position | to, | |||
| Piece | captured, | |||
| Ptype | ptype, | |||
| bool | isPromote, | |||
| Player | p | |||
| ) | [inline] |
参照先 osl::Piece::ptype(), と unknownMove().
| void osl::move_action::Store::unknownMove | ( | Position | , | |
| Position | , | |||
| Piece | , | |||
| Ptype | , | |||
| bool | , | |||
| Player | , | |||
| Move | move | |||
| ) | [inline] |
コマを取るかもしれないMove
| from | - 駒の移動元 | |
| to | - 駒の移動先 | |
| p1 | - 移動先のマスの駒 | |
| ptype | - 移動後の駒のptype | |
| isPromote | - 成りか? | |
| p | - プレイヤー |
参照先 osl::Move::isValid(), と moves.
参照元 unknownMove().
| FixedCapacityVectorPushBack<Move> osl::move_action::Store::moves |
参照元 dropMove(), simpleMove(), と unknownMove().
1.6.3