My Project
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:
osl::rating::Feature

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

◆ Threatmate()

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

Definition at line 30 of file checkmate.h.

Member Function Documentation

◆ captureForKnightCheck()

bool osl::rating::Threatmate::captureForKnightCheck ( const NumEffectState state,
Move  move,
Square  king 
)
static

◆ isCandidate()

bool osl::rating::Threatmate::isCandidate ( const NumEffectState state,
Move  move 
)
static

◆ knight2Step()

bool osl::rating::Threatmate::knight2Step ( const NumEffectState state,
Move  move,
Square  king 
)
static

◆ match()

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 osl::NumEffectState::makeUnmakeMove().


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