![]() |
Dragonfly 2.2
A text-based game engine
|
00001 /// 00002 /// A "view" event 00003 /// 00004 00005 #ifndef __EVENT_VIEW_H__ 00006 #define __EVENT_VIEW_H__ 00007 00008 #include "Event.h" 00009 00010 #define VIEW_EVENT "view" 00011 00012 class EventView : public Event { 00013 00014 protected: 00015 string tag; ///< tag to associate 00016 int value; ///< value for view 00017 bool delta; ///< true if change in value, else replace 00018 00019 public: 00020 EventView(); 00021 EventView(string new_tag, int new_value, bool new_delta); 00022 void setTag(string new_tag); 00023 string getTag(); 00024 void setValue(int new_value); 00025 int getValue(); 00026 void setDelta(bool new_delta); 00027 bool getDelta(); 00028 }; 00029 00030 #endif /// __EVENT_VIEW_H__