Go to the documentation of this file.00001
00002
00003 #ifndef EFFECT_UTIL_NEIGHBORING25DIRECT_H
00004 #define EFFECT_UTIL_NEIGHBORING25DIRECT_H
00005
00006 #include "osl/state/simpleState.h"
00007 #include "osl/state/numEffectState.h"
00008
00009 namespace osl
00010 {
00011 namespace effect_util
00012 {
00013 class Neighboring25Direct
00014 {
00015 private:
00016 static bool hasEffectFromTo(const NumEffectState& state,
00017 PtypeO ptypeo, Square from,
00018 Square target, Offset offset);
00019 public:
00020 static bool hasEffectNaive (const NumEffectState& state,
00021 PtypeO ptypeo, Square from,
00022 Square target);
00023 static bool hasEffect(const NumEffectState& state,
00024 PtypeO ptypeo, Square from,
00025 Square target)
00026 {
00027 return hasEffectNaive(state, ptypeo, from, target);
00028 }
00029
00030 };
00031 }
00032 using effect_util::Neighboring25Direct;
00033 }
00034
00035 #endif
00036
00037
00038
00039