My Project
|
#include <feature.h>
Public Types | |
enum | OpponentType { CAPTURE , DROP , ESCAPE , OTHER } |
Public Member Functions | |
Chase (Ptype s, Ptype t, bool d, OpponentType o) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &env) const |
![]() | |
Feature (const std::string &name) | |
virtual | ~Feature () |
virtual bool | effectiveInCheck () const |
const std::string & | name () const |
Static Public Member Functions | |
static const std::string | name (Ptype, Ptype, bool, OpponentType) |
Private Attributes | |
Ptype | self |
Ptype | target |
bool | drop |
OpponentType | opponent_type |
Definition at line 139 of file rating/feature.h.
Enumerator | |
---|---|
CAPTURE | |
DROP | |
ESCAPE | |
OTHER |
Definition at line 142 of file rating/feature.h.
|
inline |
Definition at line 148 of file rating/feature.h.
|
inlinevirtual |
Implements osl::rating::Feature.
Definition at line 150 of file rating/feature.h.
References CAPTURE, osl::Move::capturePtype(), DROP, drop, ESCAPE, osl::Move::from(), osl::NumEffectState::hasEffectAt(), osl::NumEffectState::hasEffectIf(), osl::rating::RatingEnv::history, osl::Move::isDrop(), osl::Move::isNormal(), osl::container::MoveStack::lastMove(), opponent_type, OTHER, osl::Move::ptype(), osl::PTYPE_EMPTY, osl::Move::ptypeO(), self, target, osl::Move::to(), and osl::SimpleState::turn().
|
static |
Definition at line 138 of file feature.cc.
References osl::PtypeTable::getCsaName(), and osl::Ptype_Table.
|
private |
Definition at line 145 of file rating/feature.h.
Referenced by match().
|
private |
Definition at line 146 of file rating/feature.h.
Referenced by match().
|
private |
Definition at line 144 of file rating/feature.h.
Referenced by match().
|
private |
Definition at line 144 of file rating/feature.h.
Referenced by match().