#include <pattern.h>


Public メソッド | |
| PatternLong (Direction d, Ptype s, LongTarget t) | |
| bool | match (const NumEffectState &state, Move move, const RatingEnv &env) const |
Static Public メソッド | |
| static const PiecePosition | nextPieceOrEnd (const SimpleState &state, Position start, Player player, Direction direction) |
direction方向に空白を進み、駒を探す
| |
| static const PiecePosition | nextPieceOrEnd (const SimpleState &state, Position start, Offset) |
| static const PiecePosition | find (const NumEffectState &state, Move move, Direction direction) |
Static Private メソッド | |
| static const std::string | name (Direction d, Ptype self) |
Private 変数 | |
| Direction | direction |
| Ptype | self |
| LongTarget | target |
| osl::rating::PatternLong::PatternLong | ( | Direction | d, | |
| Ptype | s, | |||
| LongTarget | t | |||
| ) |
pattern.cc の 33 行で定義されています。
参照先 osl::BISHOP, osl::LANCE, osl::ROOK, と osl::unpromote().
| const osl::rating::PiecePosition osl::rating::PatternLong::find | ( | const NumEffectState & | state, | |
| Move | move, | |||
| Direction | direction | |||
| ) | [static] |
pattern.cc の 66 行で定義されています。
参照先 osl::Move::from(), nextPieceOrEnd(), osl::Move::player(), と osl::Move::to().
参照元 match().
| bool osl::rating::PatternLong::match | ( | const NumEffectState & | state, | |
| Move | move, | |||
| const RatingEnv & | env | |||
| ) | const [inline, virtual] |
osl::rating::Featureを実装しています。
参照先 direction, find(), osl::rating::LongTarget::match(), osl::Move::ptype(), と target.
pattern.cc の 74 行で定義されています。
| const osl::rating::PiecePosition osl::rating::PatternLong::nextPieceOrEnd | ( | const SimpleState & | state, | |
| Position | start, | |||
| Offset | diff | |||
| ) | [static] |
pattern.cc の 40 行で定義されています。
参照先 osl::Piece::EMPTY(), osl::Piece::isEdge(), osl::Position::isOnBoard(), と osl::Offset::zero().
| const osl::rating::PiecePosition osl::rating::PatternLong::nextPieceOrEnd | ( | const SimpleState & | state, | |
| Position | start, | |||
| Player | player, | |||
| Direction | direction | |||
| ) | [static] |
direction方向に空白を進み、駒を探す
pattern.cc の 59 行で定義されています。
Direction osl::rating::PatternLong::direction [private] |
Ptype osl::rating::PatternLong::self [private] |
LongTarget osl::rating::PatternLong::target [private] |
1.6.3