#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 PieceSquare | nextPieceOrEnd (const SimpleState &state, Square start, Player player, Direction direction) |
direction方向に空白を進み、駒を探す
| |
static const PieceSquare | nextPieceOrEnd (const SimpleState &state, Square start, Offset) |
static const PieceSquare | 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::PieceSquare 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().
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::PieceSquare osl::rating::PatternLong::nextPieceOrEnd | ( | const SimpleState & | state, | |
Square | start, | |||
Offset | diff | |||
) | [static] |
const osl::rating::PieceSquare osl::rating::PatternLong::nextPieceOrEnd | ( | const SimpleState & | state, | |
Square | 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] |