My Project
shadowEffect.h
Go to the documentation of this file.
1#ifndef OSL_SHADOW_EFFECT_H
2#define OSL_SHADOW_EFFECT_H
4namespace osl
5{
6 namespace effect_util
7 {
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
33} // namespace osl
34
35#endif /* OSL_SHADOW_EFFECT_H */
36// ;;; Local Variables:
37// ;;; mode:c++
38// ;;; c-basic-offset:2
39// ;;; End:
利きを持つ局面
Player
Definition basic_type.h:8
影利きを求める
static int count(const NumEffectState &, Square target, Player attack)
static int count2(const NumEffectState &, Square target, Player attack)
target に attack の影利きを二つまで数える.
static bool hasEffect(const NumEffectState &, Square target, Player attack)
target に attack の影利きが一つでもあるか. 相手の追加利きが先にある場合は対象としない.