All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions
osl::move_probability::BlockLong Class Reference

#include <feature.h>

Inheritance diagram for osl::move_probability::BlockLong:
Inheritance graph
[legend]
Collaboration diagram for osl::move_probability::BlockLong:
Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  AttackPtype = 8, BasicAttack = AttackPtype*osl::PTYPEO_SIZE, OptionSize = 8, LongAttackSize = BasicAttack * OptionSize,
  DIM = PTYPE_SIZE * 2 * LongAttackSize
}

Public Member Functions

 BlockLong ()
double match (const StateInfo &state, const MoveInfo &move, int offset, const double *w) const

Static Public Member Functions

static int longAttackIndex (osl::PtypeO ptypeo)
static double addPiece (const StateInfo &state, Piece piece, Square to, const double *w, int offset)
static int ptypeSupport (Ptype moved, bool has_support)
static double findAll (const StateInfo &state, Player P, Square target, const double *w, int offset)
static double findAll (const StateInfo &state, Move move, const double *w, int offset=0)
static void updateCache (StateInfo &)

Static Private Member Functions

static void makeLongAttackOne (StateInfo &info, Piece piece, Direction d)

Detailed Description

Definition at line 702 of file move_probability/feature.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
AttackPtype 
BasicAttack 
OptionSize 
LongAttackSize 
DIM 

Definition at line 705 of file move_probability/feature.h.


Constructor & Destructor Documentation

Definition at line 712 of file move_probability/feature.h.


Member Function Documentation

static double osl::move_probability::BlockLong::addPiece ( const StateInfo state,
Piece  piece,
Square  to,
const double *  w,
int  offset 
) [inline, static]
static double osl::move_probability::BlockLong::findAll ( const StateInfo state,
Player  P,
Square  target,
const double *  w,
int  offset 
) [inline, static]
static double osl::move_probability::BlockLong::findAll ( const StateInfo state,
Move  move,
const double *  w,
int  offset = 0 
) [inline, static]
static int osl::move_probability::BlockLong::longAttackIndex ( osl::PtypeO  ptypeo) [inline, static]
void osl::move_probability::BlockLong::makeLongAttackOne ( StateInfo info,
Piece  piece,
Direction  d 
) [static, private]
double osl::move_probability::BlockLong::match ( const StateInfo state,
const MoveInfo move,
int  offset,
const double *  w 
) const [inline, virtual]
static int osl::move_probability::BlockLong::ptypeSupport ( Ptype  moved,
bool  has_support 
) [inline, static]

Definition at line 744 of file move_probability/feature.h.


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