neighboring25Direct.h
Go to the documentation of this file.
00001 /* neighboring25Direct.h
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   } // namespace effect_util
00032   using effect_util::Neighboring25Direct;
00033 } // namespace osl
00034 
00035 #endif /* _NEIGHBORING25_H */
00036 // ;;; Local Variables:
00037 // ;;; mode:c++
00038 // ;;; c-basic-offset:2
00039 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines