#include <feature.h>
Public Member Functions | |
Block (int s, int o) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &) const |
bool | effectiveInCheck () const |
Static Public Member Functions | |
static const std::string | name (int self, int opponent) |
static int | count (const NumEffectState &state, Square position, Player player) |
Private Attributes | |
int | self |
int | opponent |
Definition at line 88 of file rating/feature.h.
osl::rating::Block::Block | ( | int | s, |
int | o | ||
) | [inline] |
Definition at line 93 of file rating/feature.h.
static int osl::rating::Block::count | ( | const NumEffectState & | state, |
Square | position, | ||
Player | player | ||
) | [inline, static] |
Definition at line 94 of file rating/feature.h.
References osl::BISHOP, osl::LANCE, and osl::ROOK.
Referenced by osl::rating::BlockGroup::findMatch(), and match().
bool osl::rating::Block::effectiveInCheck | ( | ) | const [inline, virtual] |
Reimplemented from osl::rating::Feature.
Definition at line 105 of file rating/feature.h.
bool osl::rating::Block::match | ( | const NumEffectState & | state, |
Move | move, | ||
const RatingEnv & | |||
) | const [inline, virtual] |
Implements osl::rating::Feature.
Definition at line 100 of file rating/feature.h.
References osl::alt(), count(), opponent, and osl::Move::to().
const std::string osl::rating::Block::name | ( | int | self, |
int | opponent | ||
) | [static] |
Definition at line 33 of file rating/feature.cc.
int osl::rating::Block::opponent [private] |
Definition at line 90 of file rating/feature.h.
Referenced by match().
int osl::rating::Block::self [private] |
Definition at line 90 of file rating/feature.h.