My Project
std
osl
effect_util
shadowEffect.h
Go to the documentation of this file.
1
#ifndef OSL_SHADOW_EFFECT_H
2
#define OSL_SHADOW_EFFECT_H
3
#include "
osl/numEffectState.h
"
4
namespace
osl
5
{
6
namespace
effect_util
7
{
11
struct
ShadowEffect
12
{
13
private
:
14
template
<
int
count_max>
15
static
int
count
(
const
NumEffectState
&,
Square
target,
16
Player
attack);
17
public
:
22
static
bool
hasEffect
(
const
NumEffectState
&,
Square
target,
23
Player
attack);
28
static
int
count2
(
const
NumEffectState
&,
Square
target,
29
Player
attack);
30
};
31
}
// namespace effect_util
32
using
effect_util::ShadowEffect
;
33
}
// namespace osl
34
35
#endif
/* OSL_SHADOW_EFFECT_H */
36
// ;;; Local Variables:
37
// ;;; mode:c++
38
// ;;; c-basic-offset:2
39
// ;;; End:
osl::Square
Definition:
basic_type.h:532
osl::effect_util::ShadowEffect::count2
static int count2(const NumEffectState &, Square target, Player attack)
target に attack の影利きを二つまで数える.
Definition:
shadowEffect.cc:24
osl::effect_util::ShadowEffect::hasEffect
static bool hasEffect(const NumEffectState &, Square target, Player attack)
target に attack の影利きが一つでもあるか. 相手の追加利きが先にある場合は対象としない.
Definition:
shadowEffect.cc:17
osl::NumEffectState
利きを持つ局面
Definition:
numEffectState.h:34
osl::effect_util::ShadowEffect
影利きを求める
Definition:
shadowEffect.h:12
osl::Player
Player
Definition:
basic_type.h:8
numEffectState.h
osl::effect_util::ShadowEffect::count
static int count(const NumEffectState &, Square target, Player attack)
Definition:
shadowEffect.cc:7
osl
Definition:
additionalEffect.h:6
Generated by
1.8.20