Dragonfly
4.20
A text-based game engine
v4.20
include
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__
df::Event
Definition:
Event.h:15
df::Event::getType
std::string getType() const
Get event type.
df::Event::Event
Event()
Create base event.
df::Event::setType
void setType(std::string new_type)
Set event type.
df::Event::m_event_type
std::string m_event_type
Holds event type.
Definition:
Event.h:18
df::Event::~Event
virtual ~Event()
Destructor.
df
An animation for a sprite.
Definition:
Animation.h:15
Generated by
1.9.4