All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Attributes
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]

List of all members.

Public Member Functions

 Block (int s, int o)
bool match (const NumEffectState &state, Move move, const RatingEnv &) const
bool effectiveInCheck () 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 
) [inline, static]

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 [inline, virtual]

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 [inline, virtual]

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

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines