Dragonfly 4.19
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
11namespace df {
12
13const std::string UNDEFINED_EVENT = "df-undefined";
14
15class Event {
16
17 private:
18 std::string m_event_type; ///< Holds event type.
19
20 public:
21 /// Create base 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__
Definition: Event.h:15
std::string getType() const
Get event type.
Event()
Create base event.
void setType(std::string new_type)
Set event type.
std::string m_event_type
Holds event type.
Definition: Event.h:18
virtual ~Event()
Destructor.
An animation for a sprite.
Definition: Animation.h:15