#include <checkmate.h>
構成 | |
struct | Helper |
Public メソッド | |
Threatmate () | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &) const |
Static Public メソッド | |
static bool | isCandidate (const NumEffectState &state, Move move) |
static bool | knight2Step (const NumEffectState &state, Move move, Square king) |
static bool | captureForKnightCheck (const NumEffectState &state, Move move, Square king) |
checkmate.h の 27 行で定義されています。
osl::rating::Threatmate::Threatmate | ( | ) | [inline] |
checkmate.h の 30 行で定義されています。
bool osl::rating::Threatmate::captureForKnightCheck | ( | const NumEffectState & | state, | |
Move | move, | |||
Square | king | |||
) | [static] |
checkmate.cc の 36 行で定義されています。
参照先 osl::alt(), osl::Board_Table, osl::Piece::canMoveOn(), osl::captured(), osl::Move::capturePtype(), osl::NumEffectState::hasEffectByPtypeStrict(), osl::NumEffectState::hasEffectNotBy(), osl::SimpleState::hasPieceOnStand(), osl::Piece::isEmpty(), osl::Piece::isPiece(), osl::KNIGHT, osl::BoardTable::nextSquare(), osl::SimpleState::pieceAt(), osl::SimpleState::pieceOnBoard(), osl::Move::to(), osl::SimpleState::turn(), osl::unpromote(), osl::UUL, と osl::UUR.
参照元 isCandidate().
bool osl::rating::Threatmate::isCandidate | ( | const NumEffectState & | state, | |
Move | move | |||
) | [static] |
checkmate.cc の 61 行で定義されています。
参照先 osl::alt(), captureForKnightCheck(), osl::Move::capturePtype(), osl::Move::capturePtypeO(), osl::Move::from(), osl::NumEffectState::hasEffectByPtypeStrict(), osl::NumEffectState::hasEffectIf(), osl::SimpleState::hasPieceOnStand(), osl::NumEffectState::inCheck(), osl::Move::isDrop(), osl::Square::isNeighboring8(), osl::NumEffectState::king8Info(), osl::SimpleState::kingSquare(), osl::KNIGHT, knight2Step(), osl::NumEffectState::longEffectAt(), osl::newPtypeO(), osl::PTYPE_EMPTY, osl::Move::ptypeO(), osl::Move::to(), と osl::SimpleState::turn().
参照元 match().
bool osl::rating::Threatmate::knight2Step | ( | const NumEffectState & | state, | |
Move | move, | |||
Square | king | |||
) | [static] |
checkmate.cc の 25 行で定義されています。
参照先 osl::Move::ptype(), osl::sign(), osl::Move::to(), osl::SimpleState::turn(), osl::Square::x(), と osl::Square::y().
参照元 isCandidate().
bool osl::rating::Threatmate::match | ( | const NumEffectState & | state, | |
Move | move, | |||
const RatingEnv & | ||||
) | const [virtual] |
osl::rating::Featureを実装しています。
checkmate.cc の 94 行で定義されています。