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