My Project
Static Public Member Functions | Static Private Member Functions | List of all members
osl::effect_util::ShadowEffect Struct Reference

影利きを求める More...

#include <shadowEffect.h>

Static Public Member Functions

static bool hasEffect (const NumEffectState &, Square target, Player attack)
 target に attack の影利きが一つでもあるか. 相手の追加利きが先にある場合は対象としない.
 
static int count2 (const NumEffectState &, Square target, Player attack)
 target に attack の影利きを二つまで数える.
 

Static Private Member Functions

template<int count_max>
static int count (const NumEffectState &, Square target, Player attack)
 

Detailed Description

影利きを求める

Definition at line 11 of file shadowEffect.h.

Member Function Documentation

◆ count()

template<int count_max>
int osl::effect_util::ShadowEffect::count ( const NumEffectState state,
Square  target,
Player  attack 
)
staticprivate

Definition at line 6 of file shadowEffect.cc.

References osl::alt(), and osl::NumEffectState::findEffect().

◆ count2()

int osl::effect_util::ShadowEffect::count2 ( const NumEffectState state,
Square  target,
Player  attack 
)
static

target に attack の影利きを二つまで数える.

相手の追加利きの駒以降は対象としない.

Definition at line 23 of file shadowEffect.cc.

Referenced by osl::rating::ShadowEffectGroup::findMatch(), osl::rating::ShadowEffect1::match(), and osl::rating::ShadowEffect2::match().

◆ hasEffect()

bool osl::effect_util::ShadowEffect::hasEffect ( const NumEffectState state,
Square  target,
Player  attack 
)
static

target に attack の影利きが一つでもあるか. 相手の追加利きが先にある場合は対象としない.

Definition at line 16 of file shadowEffect.cc.


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