All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes
osl::eval::ml::GoldFeatures Class Reference

#include <minorPiece.h>

Inheritance diagram for osl::eval::ml::GoldFeatures:
Inheritance graph
[legend]
Collaboration diagram for osl::eval::ml::GoldFeatures:
Collaboration graph
[legend]

List of all members.

Public Member Functions

template<osl::Player P>
bool canRetreat (const osl::state::NumEffectState &state, const osl::Piece gold)

Static Public Member Functions

static MultiInt eval (const NumEffectState &state)

Static Protected Member Functions

template<Player P>
static int indexRetreat (Square pos)
static int indexSideX (Square pos)
template<Player P>
static int indexSideY (Square pos)
template<Player P>
static bool canRetreat (const NumEffectState &state, const Piece gold)
template<Player P>
static bool canMoveToSide (const NumEffectState &state, const Piece gold)
template<Player P>
static MultiInt evalOne (const NumEffectState &state, const Piece gold, const CArray< Square, 2 > &kings)

Static Protected Attributes

static CArray< MultiInt, 153 > knight_table
static CArray< MultiInt, 9 > retreat_table
static CArray< MultiInt, 14 > side_table

Detailed Description

Definition at line 602 of file minorPiece.h.


Member Function Documentation

template<Player P>
static bool osl::eval::ml::GoldFeatures::canMoveToSide ( const NumEffectState &  state,
const Piece  gold 
) [inline, static, protected]
template<osl::Player P>
bool osl::eval::ml::GoldFeatures::canRetreat ( const osl::state::NumEffectState state,
const osl::Piece  gold 
) [inline]
template<Player P>
static bool osl::eval::ml::GoldFeatures::canRetreat ( const NumEffectState &  state,
const Piece  gold 
) [static, protected]
osl::MultiInt osl::eval::ml::GoldFeatures::eval ( const NumEffectState &  state) [static]
template<Player P>
static MultiInt osl::eval::ml::GoldFeatures::evalOne ( const NumEffectState &  state,
const Piece  gold,
const CArray< Square, 2 > &  kings 
) [inline, static, protected]
template<Player P>
static int osl::eval::ml::GoldFeatures::indexRetreat ( Square  pos) [inline, static, protected]

Definition at line 608 of file minorPiece.h.

References osl::BLACK, and osl::Square::y().

static int osl::eval::ml::GoldFeatures::indexSideX ( Square  pos) [inline, static, protected]

Definition at line 612 of file minorPiece.h.

References osl::Square::x().

Referenced by evalOne().

template<Player P>
static int osl::eval::ml::GoldFeatures::indexSideY ( Square  pos) [inline, static, protected]

Definition at line 617 of file minorPiece.h.

References osl::BLACK, and osl::Square::y().


Member Data Documentation

Definition at line 673 of file minorPiece.h.

Referenced by evalOne().

Definition at line 674 of file minorPiece.h.

Referenced by evalOne().

Definition at line 675 of file minorPiece.h.

Referenced by evalOne().


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