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