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

#include <square.h>

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

List of all members.

Public Member Functions

 RelativeKingX (int ix, int iox, bool a, Ptype p)
bool match (const NumEffectState &state, Move move, const RatingEnv &) const

Static Public Member Functions

static const std::string name (int x, int old_x, bool, Ptype)
static int makeX (bool attack, const NumEffectState &state, Move move)
static int makeOldX (bool attack, const NumEffectState &state, Move move)
static int index (bool attack, const NumEffectState &state, Move move)

Private Attributes

int x
int old_x
Ptype ptype
bool attack

Detailed Description

Definition at line 43 of file rating/feature/square.h.


Constructor & Destructor Documentation

osl::rating::RelativeKingX::RelativeKingX ( int  ix,
int  iox,
bool  a,
Ptype  p 
) [inline]

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


Member Function Documentation

static int osl::rating::RelativeKingX::index ( bool  attack,
const NumEffectState &  state,
Move  move 
) [inline, static]
static int osl::rating::RelativeKingX::makeOldX ( bool  attack,
const NumEffectState &  state,
Move  move 
) [inline, static]
static int osl::rating::RelativeKingX::makeX ( bool  attack,
const NumEffectState &  state,
Move  move 
) [inline, static]

Definition at line 53 of file rating/feature/square.h.

References osl::alt(), osl::Move::player(), osl::Move::to(), and osl::Square::x().

Referenced by index(), and match().

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

Implements osl::rating::Feature.

Definition at line 66 of file rating/feature/square.h.

References attack, makeOldX(), makeX(), old_x, ptype, osl::Move::ptype(), and x.

const std::string osl::rating::RelativeKingX::name ( int  x,
int  old_x,
bool  ,
Ptype  ptype 
) [static]

Definition at line 8 of file rating/feature/square.cc.

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


Member Data Documentation

Definition at line 47 of file rating/feature/square.h.

Referenced by match().

Definition at line 45 of file rating/feature/square.h.

Referenced by index(), and match().

Definition at line 46 of file rating/feature/square.h.

Referenced by index(), and match().

Definition at line 45 of file rating/feature/square.h.

Referenced by index(), and match().


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