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

#include <king8.h>

Inheritance diagram for osl::rating::DefenseKing8:
osl::rating::Feature

Public Member Functions

 DefenseKing8 (Ptype s, bool d, int dan)
 
bool match (const NumEffectState &state, Move move, const RatingEnv &) 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 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
 

Detailed Description

Definition at line 46 of file std/osl/rating/feature/king8.h.

Constructor & Destructor Documentation

◆ DefenseKing8()

osl::rating::DefenseKing8::DefenseKing8 ( Ptype  s,
bool  d,
int  dan 
)
inline

Definition at line 53 of file std/osl/rating/feature/king8.h.

Member Function Documentation

◆ blocking()

static bool osl::rating::DefenseKing8::blocking ( const NumEffectState state,
Square  king,
Square  to 
)
inlinestatic

◆ count()

static int osl::rating::DefenseKing8::count ( const NumEffectState state)
inlinestatic

◆ match()

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

◆ matchDrop()

static bool osl::rating::DefenseKing8::matchDrop ( const NumEffectState state,
Move  move 
)
inlinestatic

◆ matchMove()

static bool osl::rating::DefenseKing8::matchMove ( const NumEffectState state,
Move  move 
)
inlinestatic

◆ name()

const std::string osl::rating::DefenseKing8::name ( Ptype  self,
bool  drop,
int  danger 
)
static

Definition at line 11 of file king8_.cc.

References osl::PtypeTable::getCsaName(), and osl::Ptype_Table.

Member Data Documentation

◆ danger

int osl::rating::DefenseKing8::danger
private

Definition at line 50 of file std/osl/rating/feature/king8.h.

Referenced by match().

◆ drop

bool osl::rating::DefenseKing8::drop
private

Definition at line 49 of file std/osl/rating/feature/king8.h.

Referenced by match().

◆ self

Ptype osl::rating::DefenseKing8::self
private

Definition at line 48 of file std/osl/rating/feature/king8.h.

Referenced by match().


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