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

#include <feature.h>

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

Public Member Functions

 Block (int s, int o)
 
bool match (const NumEffectState &state, Move move, const RatingEnv &) const
 
bool effectiveInCheck () const
 
- Public Member Functions inherited from osl::rating::Feature
 Feature (const std::string &name)
 
virtual ~Feature ()
 
const std::string & name () const
 

Static Public Member Functions

static const std::string name (int self, int opponent)
 
static int count (const NumEffectState &state, Square position, Player player)
 

Private Attributes

int self
 
int opponent
 

Detailed Description

Definition at line 88 of file rating/feature.h.

Constructor & Destructor Documentation

osl::rating::Block::Block ( int  s,
int  o 
)
inline

Definition at line 93 of file rating/feature.h.

Member Function Documentation

static int osl::rating::Block::count ( const NumEffectState &  state,
Square  position,
Player  player 
)
inlinestatic

Definition at line 94 of file rating/feature.h.

References osl::BISHOP, osl::LANCE, and osl::ROOK.

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

bool osl::rating::Block::effectiveInCheck ( ) const
inlinevirtual

Reimplemented from osl::rating::Feature.

Definition at line 105 of file rating/feature.h.

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

Implements osl::rating::Feature.

Definition at line 100 of file rating/feature.h.

References osl::alt(), count(), opponent, and osl::Move::to().

const std::string osl::rating::Block::name ( int  self,
int  opponent 
)
static

Definition at line 33 of file rating/feature.cc.

Member Data Documentation

int osl::rating::Block::opponent
private

Definition at line 90 of file rating/feature.h.

Referenced by match().

int osl::rating::Block::self
private

Definition at line 90 of file rating/feature.h.


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