Dragonfly 4.20
A text-based game engine
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
13namespace df {
14
15class 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__
Definition: Event.h:15
Definition: Object.h:57
Definition: Pause.h:15
int eventHandler(const Event *p_e) override
Handle event (default only handles pathfinding).
int m_pause_key
Pause key.
Definition: Pause.h:17
An animation for a sprite.
Definition: Animation.h:15