#include <feature.h>
Public Member Functions | |
Check (int p) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &) const |
bool | effectiveInCheck () const |
Static Public Member Functions | |
static bool | openLong (const NumEffectState &state, Move move) |
Static Public Attributes | |
static const CArray< const char *, 4 > | check_property = {{ "Di", "DO", "OC", "Bo" }} |
Private Attributes | |
int | property |
Definition at line 59 of file rating/feature.h.
osl::rating::Check::Check | ( | int | p | ) |
Definition at line 12 of file rating/feature.cc.
bool osl::rating::Check::effectiveInCheck | ( | ) | const [inline, virtual] |
Reimplemented from osl::rating::Feature.
Definition at line 74 of file rating/feature.h.
bool osl::rating::Check::match | ( | const NumEffectState & | state, |
Move | move, | ||
const RatingEnv & | |||
) | const [virtual] |
Implements osl::rating::Feature.
Definition at line 16 of file rating/feature.cc.
static bool osl::rating::Check::openLong | ( | const NumEffectState & | state, |
Move | move | ||
) | [inline, static] |
Definition at line 64 of file rating/feature.h.
References osl::BISHOP, osl::Move::from(), osl::Move::isDrop(), osl::LANCE, osl::Move::player(), and osl::ROOK.
Referenced by osl::rating::CheckGroup::findMatch().
const osl::CArray< const char *, 4 > osl::rating::Check::check_property = {{ "Di", "DO", "OC", "Bo" }} [static] |
Definition at line 73 of file rating/feature.h.
int osl::rating::Check::property [private] |
Definition at line 61 of file rating/feature.h.