#include <pinAttack.h>
Public Member Functions | |
PinAttack (bool a, Ptype s, Ptype t) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &, Piece p) const |
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 int | index (const NumEffectState &state, Move move, const RatingEnv &, bool attack, Piece p) |
static int | index (const NumEffectState &state, Move move, const RatingEnv &env, bool attack) |
static const std::string | name (bool attack, Ptype self, Ptype target) |
Private Attributes | |
bool | attack |
Ptype | self |
Ptype | target |
Definition at line 13 of file pinAttack.h.
Definition at line 18 of file pinAttack.h.
|
inlinestatic |
Definition at line 45 of file pinAttack.h.
References osl::Move::from(), osl::Move::isDrop(), osl::Piece::ptype(), osl::Move::ptype(), osl::PTYPE_MAX, osl::PTYPE_PIECE_MIN, osl::Move::ptypeO(), osl::Piece::square(), and osl::Move::to().
Referenced by osl::rating::PinGroup::findMatch(), and index().
|
inlinestatic |
Definition at line 55 of file pinAttack.h.
References osl::alt(), index(), osl::rating::RatingEnv::my_pin, osl::rating::RatingEnv::op_pin, and osl::Move::to().
|
inline |
Definition at line 23 of file pinAttack.h.
References osl::Move::from(), osl::Move::isDrop(), osl::Piece::ptype(), osl::Move::ptypeO(), osl::Piece::square(), target, and osl::Move::to().
Referenced by match().
|
inlinevirtual |
Implements osl::rating::Feature.
Definition at line 31 of file pinAttack.h.
References osl::alt(), attack, match(), osl::rating::RatingEnv::my_pin, osl::rating::RatingEnv::op_pin, osl::Move::ptype(), and osl::Move::to().
|
inlinestatic |
Definition at line 68 of file pinAttack.h.
References osl::PtypeTable::getCsaName(), and osl::Ptype_Table.
|
private |
Definition at line 15 of file pinAttack.h.
Referenced by match().
|
private |
Definition at line 16 of file pinAttack.h.
|
private |
Definition at line 16 of file pinAttack.h.
Referenced by match().