Dragonfly  4.3
A text-based game engine
Event.h
1 ///
2 /// The base event
3 ///
4 
5 #ifndef __EVENT_H__
6 #define __EVENT_H__
7 
8 // System includes.
9 #include <string>
10 
11 namespace df {
12 
13 const std::string UNDEFINED_EVENT = "df::undefined";
14 
15 class Event {
16 
17  private:
18  std::string m_event_type; ///< Holds event type.
19 
20  public:
21  /// Create base event.
22  Event();
23 
24  /// Destructor.
25  virtual ~Event();
26 
27  /// Set event type.
28  void setType(std::string new_type);
29 
30  /// Get event type.
31  std::string getType() const;
32 };
33 
34 } // end of namespace df
35 #endif // __EVENT_H__
void setType(std::string new_type)
Set event type.
Definition: Event.h:15
A 2-d bounding box.
Definition: Box.h:10
std::string getType() const
Get event type.
virtual ~Event()
Destructor.
std::string m_event_type
Holds event type.
Definition: Event.h:18
Event()
Create base event.