Tinman  1.0
pause.h
Go to the documentation of this file.
1 #ifndef PAUSE_H
2 #define PAUSE_H
3 #include "state.h"
4 
5 class Pause: public State {
6  CEGUI::Window* menu_window_;
8 
9 public:
10  typedef std::shared_ptr<Pause> shared;
11  Pause(std::shared_ptr<Game> game);
12  virtual ~Pause();
13 
14  void enter();
15  void update(float delta);
16  void switch_menu();
17 
18  private:
19  bool change_state(const CEGUI::EventArgs &event);
20  bool gui_shutdown(const CEGUI::EventArgs &event);
21  void add_hooks();
22  void add_gui_hooks();
23  void add_hooks(const std::string& button,
24  const CEGUI::Event::Subscriber& callback);
25 };
26 #endif
bool gui_shutdown(const CEGUI::EventArgs &event)
Definition: pause.cpp:65
CEGUI::Window * menu_window_
Definition: pause.h:6
void add_gui_hooks()
Definition: pause.cpp:45
std::shared_ptr< Pause > shared
Definition: pause.h:10
bool change_state(const CEGUI::EventArgs &event)
Definition: pause.cpp:29
bool menu_visible_
Definition: pause.h:7
bool is_init_
Definition: pause.h:7
void add_hooks()
Definition: pause.cpp:39
Pause(std::shared_ptr< Game > game)
Definition: pause.cpp:4
virtual ~Pause()
Definition: pause.cpp:10
Definition: state.h:28
void enter()
Definition: pause.cpp:15
void update(float delta)
Definition: pause.cpp:35
Definition: pause.h:5
void switch_menu()
Definition: pause.cpp:59