shadowEffect.h
Go to the documentation of this file.
00001 #ifndef OSL_SHADOW_EFFECT_H
00002 #define OSL_SHADOW_EFFECT_H
00003 #include "osl/state/numEffectState.h"
00004 namespace osl
00005 {
00006   namespace container
00007   {
00008     class PieceVector;
00009   }
00010   namespace effect_util
00011   {
00012     using container::PieceVector;
00016     struct ShadowEffect
00017     {
00018     private:
00019       template <int count_max>
00020       static int count(const NumEffectState&, Square target, 
00021                        Player attack);
00022     public:
00027       static bool hasEffect(const NumEffectState&, Square target, 
00028                             Player attack);
00033       static int count2(const NumEffectState&, Square target, 
00034                               Player attack);
00035     };
00036   } // namespace effect_util
00037   using effect_util::ShadowEffect;
00038 } // namespace osl
00039 
00040 #endif /* OSL_SHADOW_EFFECT_H */
00041 // ;;; Local Variables:
00042 // ;;; mode:c++
00043 // ;;; c-basic-offset:2
00044 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines