Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

lighteffect.h

Go to the documentation of this file.
00001 
00008 #ifndef _LIGHTEFFECT_H
00009 #define _LIGHTEFFECT_H
00010 
00011 #include "powereffect.h"
00012 
00016 class LightEffect : public PowerEffect {
00017 public:
00018     LightEffect() { }
00019     LightEffect(Actor *sender, int bright) : PowerEffect( sender, bright ) { }
00020 
00024     int get_brightness()
00025         { return get_magnitude(); }
00026 
00027     virtual RecList& get_receiver_list()
00028         { return _receiver_list; }
00029 private:
00030     static RecList _receiver_list;
00031 };
00032 
00033 #define TO_LIGHT_EFFECT(pobj)    TO_EFFECT(pobj, LightEffect)
00034 #define IS_LIGHT_EFFECT(pobj)    TO_LIGHT_EFFECT(pobj)
00035 
00036 #endif // header guard

Generated on Sat Mar 13 15:00:10 2004 by doxygen 1.3.5