All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
osl::progress::Effect5x3WithBonus Struct Reference

#include <effect5x3.h>

Inheritance diagram for osl::progress::Effect5x3WithBonus:
Inheritance graph
[legend]
Collaboration diagram for osl::progress::Effect5x3WithBonus:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Effect5x3WithBonus (const NumEffectState &state)
const Progress16 progress16bonus (Player p) const
void update (const NumEffectState &new_state, Move last_move)
Effect5x3WithBonus expect (const NumEffectState &state, Move move) const
int countEffectPieces (const NumEffectState &state, Player attack) const
const PieceMask effect5x3Mask (Player p) const

Static Public Member Functions

template<Player Attack>
static int makeProgressAreaBonus (const NumEffectState &state, Square king)
template<Player Attack, bool AlwaysPromotable, bool AlwaysNotPromotable>
static int makeProgressAreaBonus (const NumEffectState &state, Square king, Square center)

Private Member Functions

void updateProgressBonuses (const NumEffectState &state, bool black=true, bool white=true)
void updateStand (Player pl, Move m)

Static Private Member Functions

static int attackEffect3 (const NumEffectState &state, Player attack, Square target)
template<Player Defense>
static PieceMask makeEffectMask (const NumEffectState &state)

Private Attributes

CArray< int, 2 > progress_bonuses
CArray< PieceMask, 2 > effect_mask

Detailed Description

Definition at line 88 of file effect5x3.h.


Constructor & Destructor Documentation

osl::progress::Effect5x3WithBonus::Effect5x3WithBonus ( const NumEffectState &  state) [explicit]

Member Function Documentation

int osl::progress::Effect5x3WithBonus::attackEffect3 ( const NumEffectState &  state,
Player  attack,
Square  target 
) [inline, static, private]

Definition at line 150 of file effect5x3.cc.

References osl::alt().

int osl::progress::Effect5x3WithBonus::countEffectPieces ( const NumEffectState &  state,
Player  attack 
) const

Definition at line 366 of file effect5x3.cc.

References osl::alt().

const PieceMask osl::progress::Effect5x3WithBonus::effect5x3Mask ( Player  p) const [inline]

Definition at line 107 of file effect5x3.h.

References effect_mask.

osl::progress::Effect5x3WithBonus osl::progress::Effect5x3WithBonus::expect ( const NumEffectState &  state,
Move  move 
) const
template<osl::Player Defense>
osl::container::PieceMask osl::progress::Effect5x3WithBonus::makeEffectMask ( const NumEffectState &  state) [static, private]

Definition at line 126 of file effect5x3.cc.

References osl::Centering5x3::adjustCenter(), center, and target.

template<osl::Player Attack>
int osl::progress::Effect5x3WithBonus::makeProgressAreaBonus ( const NumEffectState &  state,
Square  king 
) [static]
template<osl::Player Attack, bool AlwaysPromotable, bool AlwaysNotPromotable>
int osl::progress::Effect5x3WithBonus::makeProgressAreaBonus ( const NumEffectState &  state,
Square  king,
Square  center 
) [static]
void osl::progress::Effect5x3WithBonus::update ( const NumEffectState &  new_state,
Move  last_move 
)
void osl::progress::Effect5x3WithBonus::updateProgressBonuses ( const NumEffectState &  state,
bool  black = true,
bool  white = true 
) [private]

Definition at line 347 of file effect5x3.cc.

References osl::BLACK, osl::eval::min(), and osl::WHITE.

Referenced by Effect5x3WithBonus().

void osl::progress::Effect5x3WithBonus::updateStand ( Player  pl,
Move  m 
) [inline, private]

Definition at line 113 of file effect5x3.h.

References osl::progress::Effect5x3::stand_progresses.

Referenced by expect().


Member Data Documentation

CArray<PieceMask, 2> osl::progress::Effect5x3WithBonus::effect_mask [private]

Definition at line 116 of file effect5x3.h.

Referenced by effect5x3Mask(), and Effect5x3WithBonus().

Definition at line 115 of file effect5x3.h.

Referenced by Effect5x3WithBonus(), and progress16bonus().


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