Dragonfly
4.20
A text-based game engine
v4.20
include
Pause.h
1
///
2
/// Pause
3
///
4
5
#ifndef __PAUSE_H__
6
#define __PAUSE_H__
7
8
#include "EventKeyboard.h"
9
#include "Object.h"
10
11
#define DF_PAUSE_KEY df::Keyboard::PAUSE
12
13
namespace
df
{
14
15
class
Pause
:
public
Object
{
16
private
:
17
int
m_pause_key
;
///< Pause key.
18
19
public
:
20
Pause
(
int
init_pause_key = DF_PAUSE_KEY);
21
int
eventHandler
(
const
Event
*p_e)
override
;
22
};
23
24
}
// end of namespace df
25
#endif
// __PAUSE_H__
df::Event
Definition:
Event.h:15
df::Object
Definition:
Object.h:57
df::Pause
Definition:
Pause.h:15
df::Pause::eventHandler
int eventHandler(const Event *p_e) override
Handle event (default only handles pathfinding).
df::Pause::m_pause_key
int m_pause_key
Pause key.
Definition:
Pause.h:17
df
An animation for a sprite.
Definition:
Animation.h:15
Generated by
1.9.4