#include <king8.h>
Public Member Functions | |
DefenseKing8 (Ptype s, bool d, int dan) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &) 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 self, bool drop, int danger) |
static int | count (const NumEffectState &state) |
static bool | blocking (const NumEffectState &state, Square king, Square to) |
static bool | matchDrop (const NumEffectState &state, Move move) |
static bool | matchMove (const NumEffectState &state, Move move) |
Private Attributes | |
Ptype | self |
bool | drop |
int | danger |
Definition at line 46 of file std/osl/rating/feature/king8.h.
|
inline |
Definition at line 53 of file std/osl/rating/feature/king8.h.
|
inlinestatic |
Definition at line 76 of file std/osl/rating/feature/king8.h.
References osl::alt(), osl::rating::CountEffect2::attack, osl::BISHOP, osl::NumEffectState::findAttackAt(), osl::effect_util::Neighboring8Direct::hasEffect(), osl::LANCE, osl::newPtypeO(), osl::ROOK, and osl::SimpleState::turn().
|
inlinestatic |
Definition at line 57 of file std/osl/rating/feature/king8.h.
References osl::alt(), osl::rating::CountEffect2::attack, osl::rating::CountEffect2::count(), osl::NumEffectState::hasEffectAt(), osl::Piece::isEdge(), osl::SimpleState::kingSquare(), osl::eval::min(), osl::SimpleState::pieceAt(), and osl::SimpleState::turn().
Referenced by osl::rating::DefenseKing8Group::findMatch().
|
inlinevirtual |
Implements osl::rating::Feature.
Definition at line 114 of file std/osl/rating/feature/king8.h.
References osl::rating::CountEffect2::count(), and osl::Move::ptype().
|
inlinestatic |
Definition at line 91 of file std/osl/rating/feature/king8.h.
References osl::effect_util::Neighboring8Direct::hasEffect(), osl::Move::isDrop(), osl::Square::isNeighboring8(), osl::SimpleState::kingSquare(), osl::Move::ptypeO(), osl::Move::to(), and osl::SimpleState::turn().
Referenced by osl::rating::DefenseKing8Group::findMatch().
|
inlinestatic |
Definition at line 101 of file std/osl/rating/feature/king8.h.
References osl::Move::from(), osl::effect_util::Neighboring8Direct::hasEffect(), osl::Move::isDrop(), osl::Square::isNeighboring8(), osl::KING, osl::SimpleState::kingSquare(), osl::Move::ptype(), osl::Move::ptypeO(), osl::Move::to(), and osl::SimpleState::turn().
Referenced by osl::rating::DefenseKing8Group::findMatch().
|
static |
Definition at line 11 of file king8_.cc.
References osl::PtypeTable::getCsaName(), and osl::Ptype_Table.
|
private |
Definition at line 50 of file std/osl/rating/feature/king8.h.
|
private |
Definition at line 49 of file std/osl/rating/feature/king8.h.
|
private |
Definition at line 48 of file std/osl/rating/feature/king8.h.