My Project
|
#include <feature.h>
Public Member Functions | |
Block (int s, int o) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &) const |
bool | effectiveInCheck () const |
![]() | |
Feature (const std::string &name) | |
virtual | ~Feature () |
const std::string & | name () 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 85 of file rating/feature.h.
Definition at line 90 of file rating/feature.h.
|
inlinestatic |
Definition at line 91 of file rating/feature.h.
References osl::BISHOP, count(), osl::NumEffectState::findAttackAt(), osl::NumEffectState::hasEffectByPtype(), osl::LANCE, osl::Piece::ptype(), and osl::ROOK.
Referenced by count(), osl::rating::BlockGroup::findMatch(), and match().
|
inlinevirtual |
Reimplemented from osl::rating::Feature.
Definition at line 102 of file rating/feature.h.
|
inlinevirtual |
Implements osl::rating::Feature.
Definition at line 97 of file rating/feature.h.
References osl::alt(), count(), opponent, self, osl::Move::to(), and osl::SimpleState::turn().
Definition at line 28 of file feature.cc.
|
private |
Definition at line 87 of file rating/feature.h.
Referenced by match().
|
private |
Definition at line 87 of file rating/feature.h.
Referenced by match().