All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Static Public Member Functions | List of all members
osl::rating::Threatmate Class Reference

#include <checkmate.h>

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

Classes

struct  Helper
 

Public Member Functions

 Threatmate ()
 
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 bool isCandidate (const NumEffectState &state, Move move)
 
static bool knight2Step (const NumEffectState &state, Move move, Square king)
 
static bool captureForKnightCheck (const NumEffectState &state, Move move, Square king)
 

Detailed Description

Definition at line 27 of file checkmate.h.

Constructor & Destructor Documentation

osl::rating::Threatmate::Threatmate ( )
inline

Definition at line 30 of file checkmate.h.

Member Function Documentation

bool osl::rating::Threatmate::captureForKnightCheck ( const NumEffectState &  state,
Move  move,
Square  king 
)
static
bool osl::rating::Threatmate::isCandidate ( const NumEffectState &  state,
Move  move 
)
static
bool osl::rating::Threatmate::knight2Step ( const NumEffectState &  state,
Move  move,
Square  king 
)
static
bool osl::rating::Threatmate::match ( const NumEffectState &  state,
Move  move,
const RatingEnv  
) const
virtual

Implements osl::rating::Feature.

Definition at line 94 of file checkmate.cc.

References result.


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