My Project
|
#include <king8.h>
Public Member Functions | |
AttackKing8 (Ptype s, Ptype t, bool ss, int attack, int defense) | |
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 Private Member Functions | |
static const std::string | name (Ptype self, Ptype target, bool same) |
![]() | |
static std::pair< int, int > | count (const NumEffectState &state, Square position, const RatingEnv &env) |
static std::string | name (int attack, int defense) |
static int | index (const NumEffectState &state, Square position, const RatingEnv &env) |
Private Attributes | |
Ptype | self |
Ptype | target |
bool | same |
![]() | |
int | attack |
int | defense |
Additional Inherited Members | |
![]() | |
CountEffect2 (int a, int d) | |
bool | match (const NumEffectState &state, Square position, const RatingEnv &env) const |
![]() | |
static const int | Max = 2 |
Definition at line 14 of file std/osl/rating/feature/king8.h.
Definition at line 20 of file std/osl/rating/feature/king8.h.
|
inlinevirtual |
Implements osl::rating::Feature.
Definition at line 25 of file std/osl/rating/feature/king8.h.
References osl::alt(), osl::rating::CountEffect2::count(), osl::effect_util::Neighboring8Direct::findNearest(), osl::Move::from(), osl::NumEffectState::hasEffectByPiece(), osl::Move::isDrop(), osl::isPiece(), osl::SimpleState::kingSquare(), osl::rating::CountEffect2::match(), osl::SimpleState::pieceAt(), osl::SimpleState::pieceOnBoard(), osl::Move::player(), osl::Move::ptype(), osl::Move::ptypeO(), same, self, target, osl::Move::to(), and osl::SimpleState::turn().
|
staticprivate |
Definition at line 5 of file king8_.cc.
References osl::PtypeTable::getCsaName(), osl::Ptype_Table, same, self, and target.
|
private |
Definition at line 17 of file std/osl/rating/feature/king8.h.
|
private |
Definition at line 16 of file std/osl/rating/feature/king8.h.
|
private |
Definition at line 16 of file std/osl/rating/feature/king8.h.