My Project
|
#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 attack, osl::Move::from(), osl::NumEffectState::hasEffectByPiece(), osl::NumEffectState::hasEffectIf(), index(), osl::Move::isDrop(), osl::SimpleState::pieceOnBoard(), 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(), index(), and index().
|
inlinestatic |
Definition at line 55 of file pinAttack.h.
References osl::alt(), osl::PieceMask::any(), attack, osl::NumEffectState::countEffect(), index(), osl::rating::RatingEnv::my_pin, osl::rating::RatingEnv::op_pin, osl::SimpleState::pieceOf(), osl::container::PieceMask64::takeOneBit(), osl::Move::to(), and osl::SimpleState::turn().
|
inline |
Definition at line 23 of file pinAttack.h.
References osl::Move::from(), osl::NumEffectState::hasEffectByPiece(), osl::NumEffectState::hasEffectIf(), osl::Move::isDrop(), osl::SimpleState::pieceOnBoard(), 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(), osl::PieceMask::any(), attack, osl::NumEffectState::countEffect(), match(), osl::rating::RatingEnv::my_pin, osl::rating::RatingEnv::op_pin, osl::SimpleState::pieceOf(), osl::Move::ptype(), self, osl::container::PieceMask64::takeOneBit(), osl::Move::to(), and osl::SimpleState::turn().
|
inlinestatic |
Definition at line 68 of file pinAttack.h.
References attack, osl::PtypeTable::getCsaName(), osl::Ptype_Table, self, and target.
|
private |
|
private |
Definition at line 16 of file pinAttack.h.
|
private |
Definition at line 16 of file pinAttack.h.