All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Static Public Member Functions | Private Types | Static Private Member Functions | Static Private Attributes | List of all members
osl::eval::ml::King8Effect Class Reference

#include <king8.h>

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

Public Types

enum  { DIM = 32 + 32 + 288 + 288 }
 

Static Public Member Functions

static void setUp (const Weights &weights)
 
static int eval (const osl::state::NumEffectState &state)
 

Private Types

enum  EffectState {
  NOT_EMPTY = -1, NO_EFFECT = 0, LESS_EFFECT, MORE_EFFECT,
  MORE_EFFECT_KING_ONLY
}
 

Static Private Member Functions

static int index (const Direction dir, EffectState state)
 
static int indexY (Piece king, const Direction dir, EffectState state)
 
static void effectState (const NumEffectState &state, const Player defense, const Direction dir, EffectState &empty, EffectState &)
 

Static Private Attributes

static CArray< int, 32 > empty_table
 
static CArray< int, 32 > defense_table
 
static CArray< int, 288 > empty_y_table
 
static CArray< int, 288 > defense_y_table
 

Detailed Description

Definition at line 20 of file eval/ml/king8.h.

Member Enumeration Documentation

anonymous enum
Enumerator
DIM 

Definition at line 23 of file eval/ml/king8.h.

Enumerator
NOT_EMPTY 
NO_EFFECT 
LESS_EFFECT 
MORE_EFFECT 
MORE_EFFECT_KING_ONLY 

Definition at line 27 of file eval/ml/king8.h.

Member Function Documentation

void osl::eval::ml::King8Effect::effectState ( const NumEffectState &  state,
const Player  defense,
const Direction  dir,
EffectState empty,
EffectState defense 
)
staticprivate

Definition at line 101 of file eval/ml/king8.cc.

References osl::alt(), osl::Board_Table, osl::BoardTable::nextSquare(), and target.

Referenced by eval().

int osl::eval::ml::King8Effect::eval ( const osl::state::NumEffectState state)
static
int osl::eval::ml::King8Effect::index ( const Direction  dir,
EffectState  state 
)
staticprivate

Definition at line 82 of file eval/ml/king8.cc.

Referenced by eval().

int osl::eval::ml::King8Effect::indexY ( Piece  king,
const Direction  dir,
EffectState  state 
)
staticprivate

Definition at line 89 of file eval/ml/king8.cc.

References osl::BLACK, osl::Piece::owner(), osl::Piece::square(), and osl::Square::y().

Referenced by eval().

void osl::eval::ml::King8Effect::setUp ( const Weights weights)
static

Definition at line 17 of file eval/ml/king8.cc.

References osl::eval::ml::Weights::value().

Member Data Documentation

osl::misc::CArray< int, 32 > osl::eval::ml::King8Effect::defense_table
staticprivate

Definition at line 36 of file eval/ml/king8.h.

Referenced by eval().

osl::misc::CArray< int, 288 > osl::eval::ml::King8Effect::defense_y_table
staticprivate

Definition at line 38 of file eval/ml/king8.h.

Referenced by eval().

osl::misc::CArray< int, 32 > osl::eval::ml::King8Effect::empty_table
staticprivate

Definition at line 35 of file eval/ml/king8.h.

Referenced by eval().

osl::misc::CArray< int, 288 > osl::eval::ml::King8Effect::empty_y_table
staticprivate

Definition at line 37 of file eval/ml/king8.h.

Referenced by eval().


The documentation for this class was generated from the following files: