![]() |
Dragonfly 2.2
A text-based game engine
|
00001 /// 00002 /// Event.h 00003 /// 00004 00005 #ifndef __EVENT_H__ 00006 #define __EVENT_H__ 00007 00008 #include <string> 00009 00010 using namespace std; 00011 00012 class Event { 00013 00014 protected: 00015 string event_type; 00016 void setType(string new_type); 00017 00018 public: 00019 /// Create base event 00020 Event(); 00021 00022 /// Destructor 00023 virtual ~Event(); 00024 00025 /// Get the event type 00026 string getType(); 00027 00028 }; 00029 00030 #endif // __EVENT_H__