My Project
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
osl::move_probability::BlockLong Class Reference

#include <feature.h>

Inheritance diagram for osl::move_probability::BlockLong:
osl::move_probability::Feature

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
 
- Public Member Functions inherited from osl::move_probability::Feature
 Feature (std::string n, size_t d)
 
virtual ~Feature ()
 
std::string name () const
 
size_t dimension () 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 Public Member Functions inherited from osl::move_probability::Feature
static int classifyEffect9 (const NumEffectState &state, Player player, Square to)
 

Static Private Member Functions

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

Detailed Description

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
AttackPtype 
BasicAttack 
OptionSize 
LongAttackSize 
DIM 

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

Constructor & Destructor Documentation

◆ BlockLong()

osl::move_probability::BlockLong::BlockLong ( )
inline

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

Member Function Documentation

◆ addPiece()

static double osl::move_probability::BlockLong::addPiece ( const StateInfo state,
Piece  piece,
Square  to,
const double *  w,
int  offset 
)
inlinestatic

◆ findAll() [1/2]

static double osl::move_probability::BlockLong::findAll ( const StateInfo state,
Move  move,
const double *  w,
int  offset = 0 
)
inlinestatic

◆ findAll() [2/2]

static double osl::move_probability::BlockLong::findAll ( const StateInfo state,
Player  P,
Square  target,
const double *  w,
int  offset 
)
inlinestatic

◆ longAttackIndex()

static int osl::move_probability::BlockLong::longAttackIndex ( osl::PtypeO  ptypeo)
inlinestatic

◆ makeLongAttackOne()

void osl::move_probability::BlockLong::makeLongAttackOne ( StateInfo info,
Piece  piece,
Direction  d 
)
staticprivate

◆ match()

double osl::move_probability::BlockLong::match ( const StateInfo state,
const MoveInfo move,
int  offset,
const double *  w 
) const
inlinevirtual

◆ ptypeSupport()

static int osl::move_probability::BlockLong::ptypeSupport ( Ptype  moved,
bool  has_support 
)
inlinestatic

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

References LongAttackSize.

Referenced by findAll().

◆ updateCache()

void osl::move_probability::BlockLong::updateCache ( StateInfo info)
static

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