My Project
|
#include <feature.h>
Classes | |
struct | Test |
Public Member Functions | |
ImmediateAddSupport (Ptype self, Ptype attack) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &env) const |
bool | effectiveInCheck () const |
![]() | |
Feature (const std::string &name) | |
virtual | ~Feature () |
const std::string & | name () const |
Static Public Member Functions | |
static int | index (const NumEffectState &state, Move move, const RatingEnv &env) |
Private Attributes | |
Ptype | self |
Ptype | attack |
Definition at line 183 of file rating/feature.h.
Definition at line 62 of file feature.cc.
|
inlinevirtual |
Reimplemented from osl::rating::Feature.
Definition at line 190 of file rating/feature.h.
|
static |
Definition at line 88 of file feature.cc.
References osl::alt(), osl::NumEffectState::effectedMask(), osl::NumEffectState::forEachEffectOfPiece(), osl::PieceMask::getMask(), osl::NumEffectState::hasEffectByPiece(), osl::NumEffectState::hasEffectIf(), osl::PtypeTable::hasLongMove(), osl::rating::RatingEnv::history, osl::Move::isNormal(), osl::container::MoveStack::lastMove(), osl::SimpleState::pieceOf(), osl::SimpleState::pieceOnBoard(), osl::NumEffectState::piecesOnBoard(), osl::Piece::ptype(), osl::Move::ptype(), osl::PTYPE_MAX, osl::PTYPE_PIECE_MIN, osl::Ptype_Table, osl::Move::ptypeO(), osl::Piece::square(), osl::Move::to(), and osl::SimpleState::turn().
Referenced by osl::rating::ImmediateAddSupportGroup::findMatch().
|
virtual |
Implements osl::rating::Feature.
Definition at line 69 of file feature.cc.
References osl::NumEffectState::forEachEffectOfPiece(), osl::rating::RatingEnv::history, osl::Move::isNormal(), osl::container::MoveStack::lastMove(), osl::SimpleState::pieceOnBoard(), osl::Move::ptype(), and osl::Move::to().
|
private |
Definition at line 186 of file rating/feature.h.
|
private |
Definition at line 186 of file rating/feature.h.