All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Attributes
osl::rating::DefenseKing8 Class Reference

#include <king8.h>

Inheritance diagram for osl::rating::DefenseKing8:
Inheritance graph
[legend]
Collaboration diagram for osl::rating::DefenseKing8:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DefenseKing8 (Ptype s, bool d, int dan)
bool match (const NumEffectState &state, Move move, const RatingEnv &) 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 47 of file rating/feature/king8.h.


Constructor & Destructor Documentation

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

Definition at line 54 of file rating/feature/king8.h.


Member Function Documentation

static bool osl::rating::DefenseKing8::blocking ( const NumEffectState &  state,
Square  king,
Square  to 
) [inline, static]
static int osl::rating::DefenseKing8::count ( const NumEffectState &  state) [inline, static]

Definition at line 58 of file rating/feature/king8.h.

References osl::alt(), and osl::eval::min().

Referenced by osl::rating::DefenseKing8Group::findMatch(), and match().

bool osl::rating::DefenseKing8::match ( const NumEffectState &  state,
Move  move,
const RatingEnv  
) const [inline, virtual]

Implements osl::rating::Feature.

Definition at line 115 of file rating/feature/king8.h.

References count(), danger, drop, matchDrop(), matchMove(), and osl::Move::ptype().

static bool osl::rating::DefenseKing8::matchDrop ( const NumEffectState &  state,
Move  move 
) [inline, static]
static bool osl::rating::DefenseKing8::matchMove ( const NumEffectState &  state,
Move  move 
) [inline, static]
const std::string osl::rating::DefenseKing8::name ( Ptype  self,
bool  drop,
int  danger 
) [static]

Definition at line 11 of file rating/feature/king8.cc.

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


Member Data Documentation

Definition at line 51 of file rating/feature/king8.h.

Referenced by match().

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

Referenced by match().

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines