shadowEffect.h
Go to the documentation of this file.
#ifndef OSL_SHADOW_EFFECT_H
#define OSL_SHADOW_EFFECT_H
#include "osl/numEffectState.h"
namespace osl
{
namespace effect_util
{
struct ShadowEffect
{
private:
template <int count_max>
static int count(const NumEffectState&, Square target,
Player attack);
public:
static bool hasEffect(const NumEffectState&, Square target,
Player attack);
static int count2(const NumEffectState&, Square target,
Player attack);
};
} // namespace effect_util
using effect_util::ShadowEffect;
} // namespace osl
#endif /* OSL_SHADOW_EFFECT_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::NumEffectState
利きを持つ局面
Definition numEffectState.h:34
osl::Square
Definition basic_type.h:532
osl::effect_util
Definition additionalEffect.h:8
osl
Definition additionalEffect.h:6
osl::Player
Player
Definition basic_type.h:8
numEffectState.h
osl::effect_util::ShadowEffect
影利きを求める
Definition shadowEffect.h:12
osl::effect_util::ShadowEffect::count
static int count(const NumEffectState &, Square target, Player attack)
Definition shadowEffect.cc:7
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