My Project
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
osl::rating::PinAttack Class Reference

#include <pinAttack.h>

Inheritance diagram for osl::rating::PinAttack:
osl::rating::Feature

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
 
- Public Member Functions inherited from osl::rating::Feature
 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
 

Detailed Description

Definition at line 13 of file pinAttack.h.

Constructor & Destructor Documentation

◆ PinAttack()

osl::rating::PinAttack::PinAttack ( bool  a,
Ptype  s,
Ptype  t 
)
inline

Definition at line 18 of file pinAttack.h.

Member Function Documentation

◆ index() [1/2]

static int osl::rating::PinAttack::index ( const NumEffectState state,
Move  move,
const RatingEnv ,
bool  attack,
Piece  p 
)
inlinestatic

◆ index() [2/2]

static int osl::rating::PinAttack::index ( const NumEffectState state,
Move  move,
const RatingEnv env,
bool  attack 
)
inlinestatic

◆ match() [1/2]

bool osl::rating::PinAttack::match ( const NumEffectState state,
Move  move,
const RatingEnv ,
Piece  p 
) const
inline

◆ match() [2/2]

bool osl::rating::PinAttack::match ( const NumEffectState state,
Move  move,
const RatingEnv env 
) const
inlinevirtual

◆ name()

static const std::string osl::rating::PinAttack::name ( bool  attack,
Ptype  self,
Ptype  target 
)
inlinestatic

Definition at line 68 of file pinAttack.h.

References attack, osl::PtypeTable::getCsaName(), osl::Ptype_Table, self, and target.

Member Data Documentation

◆ attack

bool osl::rating::PinAttack::attack
private

Definition at line 15 of file pinAttack.h.

Referenced by index(), index(), match(), and name().

◆ self

Ptype osl::rating::PinAttack::self
private

Definition at line 16 of file pinAttack.h.

Referenced by match(), and name().

◆ target

Ptype osl::rating::PinAttack::target
private

Definition at line 16 of file pinAttack.h.

Referenced by match(), and name().


The documentation for this class was generated from the following file: