Dragonfly  4.3
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 
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);
22 };
23 
24 } // end of namespace df
25 #endif // __PAUSE_H__
int eventHandler(const Event *p_e)
Handle event (default only handles pathfinding).
Definition: Pause.h:15
Definition: Event.h:15
A 2-d bounding box.
Definition: Box.h:10
Definition: Object.h:59
int m_pause_key
Pause key.
Definition: Pause.h:17