#include <feature.h>
Public Member Functions | |
BadLance (bool h) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &) const |
Static Public Member Functions | |
static bool | basicMatch (const NumEffectState &state, Move move, Square front) |
Private Attributes | |
bool | has_effect |
Definition at line 220 of file rating/feature.h.
osl::rating::BadLance::BadLance | ( | bool | h | ) | [inline, explicit] |
Definition at line 224 of file rating/feature.h.
static bool osl::rating::BadLance::basicMatch | ( | const NumEffectState & | state, |
Move | move, | ||
Square | front | ||
) | [inline, static] |
Definition at line 227 of file rating/feature.h.
References osl::alt(), osl::Move::isDrop(), osl::LANCE, osl::PAWN, osl::Move::player(), osl::Move::ptype(), and osl::Square::x().
Referenced by osl::rating::BadLanceGroup::findMatch(), and match().
bool osl::rating::BadLance::match | ( | const NumEffectState & | state, |
Move | move, | ||
const RatingEnv & | |||
) | const [inline, virtual] |
Implements osl::rating::Feature.
Definition at line 235 of file rating/feature.h.
References osl::alt(), basicMatch(), osl::Board_Table, has_effect, osl::BoardTable::nextSquare(), osl::Move::player(), osl::Move::to(), and osl::U.
bool osl::rating::BadLance::has_effect [private] |
Definition at line 222 of file rating/feature.h.
Referenced by match().