My Project
osl::progress::Effect5x3WithBonus Struct Reference

#include <effect5x3.h>

Inheritance diagram for osl::progress::Effect5x3WithBonus:
osl::progress::Effect5x3

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
template<osl::Player Defense>
osl::PieceMask makeEffectMask (const NumEffectState &state)
Public Member Functions inherited from osl::progress::Effect5x3
 Effect5x3 (const NumEffectState &state)
void changeTurn ()
int progress (Player p) const
const Progress16 progress16 () const
const Progress16 progress16 (Player p) const
Effect5x3 expect (const NumEffectState &state, Move move) const
void update (const NumEffectState &new_state, Move last_move)

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)
Static Public Member Functions inherited from osl::progress::Effect5x3
static void updateStand (int &old_stand, Move last_move)
static int makeProgressAll (Player defense, const NumEffectState &state, Square king)
static int makeProgressArea (Player attack, const NumEffectState &state, Square king)
static int makeProgressStand (Player attack, const NumEffectState &state)
static int makeProgress (Player defense, const NumEffectState &state)
 王の位置を指定したprogressの計算.
static int makeProgress (const NumEffectState &state)
static const Progress16 progress16 (int progress)
 0-15 の値を返す
static const Progress16 progress16each (int progress)
 0-15 の値を返す.

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

Additional Inherited Members

Protected Attributes inherited from osl::progress::Effect5x3
CArray< int, 2 > progresses
CArray< int, 2 > stand_progresses
CArray< int, 2 > area_progresses

Detailed Description

Definition at line 88 of file effect5x3.h.

Constructor & Destructor Documentation

◆ Effect5x3WithBonus()

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

Member Function Documentation

◆ attackEffect3()

int osl::progress::Effect5x3WithBonus::attackEffect3 ( const NumEffectState & state,
Player attack,
Square target )
inlinestaticprivate

◆ countEffectPieces()

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

◆ effect5x3Mask()

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

Definition at line 107 of file effect5x3.h.

References effect_mask.

Referenced by countEffectPieces().

◆ expect()

◆ makeEffectMask() [1/2]

template<osl::Player Defense>
osl::PieceMask osl::progress::Effect5x3WithBonus::makeEffectMask ( const NumEffectState & state)

◆ makeEffectMask() [2/2]

template<Player Defense>
PieceMask osl::progress::Effect5x3WithBonus::makeEffectMask ( const NumEffectState & state)
staticprivate

Referenced by Effect5x3WithBonus(), and update().

◆ makeProgressAreaBonus() [1/2]

template<osl::Player Attack>
int osl::progress::Effect5x3WithBonus::makeProgressAreaBonus ( const NumEffectState & state,
Square king )
static

◆ makeProgressAreaBonus() [2/2]

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

◆ progress16bonus()

const Progress16 osl::progress::Effect5x3WithBonus::progress16bonus ( Player p) const
inline

◆ update()

◆ updateProgressBonuses()

void osl::progress::Effect5x3WithBonus::updateProgressBonuses ( const NumEffectState & state,
bool black = true,
bool white = true )
private

Definition at line 344 of file effect5x3.cc.

References osl::BLACK, countEffectPieces(), progress_bonuses, and osl::WHITE.

Referenced by Effect5x3WithBonus(), and update().

◆ updateStand()

void osl::progress::Effect5x3WithBonus::updateStand ( Player pl,
Move m )
inlineprivate

Member Data Documentation

◆ effect_mask

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

Definition at line 116 of file effect5x3.h.

Referenced by effect5x3Mask(), Effect5x3WithBonus(), and update().

◆ progress_bonuses

CArray<int,2> osl::progress::Effect5x3WithBonus::progress_bonuses
private

Definition at line 115 of file effect5x3.h.

Referenced by Effect5x3WithBonus(), progress16bonus(), update(), and updateProgressBonuses().


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