All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Static Public Member Functions | Static Public Attributes
osl::eval::ml::KingPieceRelative Struct Reference

#include <kingTable.h>

Collaboration diagram for osl::eval::ml::KingPieceRelative:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { DIM }
enum  { TABLE_DIM = DIM / 2 }
typedef CArray2d< MultiInt,
PTYPE_SIZE, 17 *9 > 
table_t

Static Public Member Functions

static int index (const NumEffectState &, Player owner, const Square position, Square king)
static int index (const NumEffectState &state, Player owner, const Square position, bool same_king)
static int index (const NumEffectState &state, PtypeO ptypeo, const Square position, bool same_king)
static int index (const NumEffectState &state, const Piece piece, bool same_king)
static void setUp (const Weights &weights, int stage)
static MultiInt eval (const NumEffectState &state)
template<Player P>
static MultiInt evalWithUpdate (const NumEffectState &state, Move moved, const MultiInt &last_values)

Static Public Attributes

static table_t attack_table
static table_t defense_table

Detailed Description

Definition at line 21 of file kingTable.h.


Member Typedef Documentation

Definition at line 23 of file kingTable.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
DIM 

Definition at line 56 of file kingTable.h.

anonymous enum
Enumerator:
TABLE_DIM 

Definition at line 58 of file kingTable.h.


Member Function Documentation

MultiInt osl::eval::ml::KingPieceRelative::eval ( const NumEffectState &  state) [static]
template<osl::Player P>
template MultiInt osl::eval::ml::KingPieceRelative::evalWithUpdate< WHITE > ( const NumEffectState &  state,
Move  moved,
const MultiInt last_values 
) [static]
static int osl::eval::ml::KingPieceRelative::index ( const NumEffectState &  ,
Player  owner,
const Square  position,
Square  king 
) [inline, static]
static int osl::eval::ml::KingPieceRelative::index ( const NumEffectState &  state,
Player  owner,
const Square  position,
bool  same_king 
) [inline, static]

Definition at line 34 of file kingTable.h.

References osl::alt(), and index().

static int osl::eval::ml::KingPieceRelative::index ( const NumEffectState &  state,
PtypeO  ptypeo,
const Square  position,
bool  same_king 
) [inline, static]

Definition at line 43 of file kingTable.h.

References osl::getOwner(), and index().

static int osl::eval::ml::KingPieceRelative::index ( const NumEffectState &  state,
const Piece  piece,
bool  same_king 
) [inline, static]

Definition at line 50 of file kingTable.h.

References index(), osl::Piece::owner(), and osl::Piece::square().

void osl::eval::ml::KingPieceRelative::setUp ( const Weights weights,
int  stage 
) [static]

Definition at line 9 of file kingTable.cc.

References osl::PTYPE_MAX, osl::PTYPE_PIECE_MIN, and osl::eval::ml::Weights::value().


Member Data Documentation


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