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

#include <square.h>

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

List of all members.

Public Member Functions

 RelativeKingY (int iy, int ioy, bool a, Ptype p)
bool match (const NumEffectState &state, Move move, const RatingEnv &) const

Static Public Member Functions

static const std::string name (int y, int old_y, bool, Ptype ptype)
static int makeY (bool attack, const NumEffectState &state, Move move)
static int makeOldY (bool attack, const NumEffectState &state, Move move)
static int index (bool attack, const NumEffectState &state, Move move)

Private Attributes

int y
int old_y
Ptype ptype
bool attack

Detailed Description

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


Constructor & Destructor Documentation

osl::rating::RelativeKingY::RelativeKingY ( int  iy,
int  ioy,
bool  a,
Ptype  p 
) [inline]

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


Member Function Documentation

static int osl::rating::RelativeKingY::index ( bool  attack,
const NumEffectState &  state,
Move  move 
) [inline, static]
static int osl::rating::RelativeKingY::makeOldY ( bool  attack,
const NumEffectState &  state,
Move  move 
) [inline, static]
static int osl::rating::RelativeKingY::makeY ( bool  attack,
const NumEffectState &  state,
Move  move 
) [inline, static]

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

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

Referenced by index(), and match().

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

Implements osl::rating::Feature.

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

References attack, makeOldY(), makeY(), old_y, ptype, osl::Move::ptype(), and y.

const std::string osl::rating::RelativeKingY::name ( int  y,
int  old_y,
bool  ,
Ptype  ptype 
) [static]

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

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


Member Data Documentation

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

Referenced by match().

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

Referenced by index(), and match().

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

Referenced by index(), and match().

Definition at line 82 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