00001 00008 #ifndef _HUNGEREFFECT_H 00009 #define _HUNGEREFFECT_H 00010 00011 #include "behavioreffect.h" 00012 00016 class HungerEffect : public BehaviorEffect { 00017 public: 00018 HungerEffect() { } 00019 HungerEffect(Actor *sender, int tasty) : BehaviorEffect( sender, tasty ) { } 00020 00024 int get_tastiness() 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_HUNGER_EFFECT(pobj) TO_EFFECT(pobj, HungerEffect) 00034 #define IS_HUNGER_EFFECT(pobj) TO_HUNGER_EFFECT(pobj) 00035 00036 #endif // header guard