Tinman  1.0
results.h
Go to the documentation of this file.
1 #ifndef RESULTS_H
2 #define RESULTS_H
3 #include "state.h"
4 
5 class Results: public State {
7  bool is_init_;
8  Ice::AsyncResultPtr next_race_;
9  float last_nitro_;
10 public:
11  typedef std::shared_ptr<Results> shared;
12  Results(std::shared_ptr<Game> game);
13  virtual ~Results();
14 
15  void enter();
16  void update(float delta);
17 
18  private:
19  void switch_menu();
20  void add_hooks();
21  void add_gui_hooks();
22  void add_hooks(CEGUI::Window* window, const std::string& button,
23  const CEGUI::Event::Subscriber& callback);
24  bool change_state(const CEGUI::EventArgs &event);
25  bool show_shop(const CEGUI::EventArgs &event);
26  void show_results();
27  void config_progress_bar();
28 
29  bool sell_nitro(const CEGUI::EventArgs &event);
30 };
31 #endif
Definition: results.h:5
CEGUI::Window * waiting_window_
Definition: results.h:6
void show_results()
Definition: results.cpp:27
CEGUI::Window * menu_window_
Definition: results.h:6
void add_hooks()
Definition: results.cpp:50
void enter()
Definition: results.cpp:20
Results(std::shared_ptr< Game > game)
Definition: results.cpp:4
bool is_init_
Definition: results.h:7
bool show_shop(const CEGUI::EventArgs &event)
Definition: results.cpp:98
CEGUI::Window * shop_window_
Definition: results.h:6
Definition: state.h:28
void update(float delta)
Definition: results.cpp:87
Ice::AsyncResultPtr next_race_
Definition: results.h:8
float last_nitro_
Definition: results.h:9
void switch_menu()
bool sell_nitro(const CEGUI::EventArgs &event)
Definition: results.cpp:121
void config_progress_bar()
Definition: results.cpp:110
void add_gui_hooks()
Definition: results.cpp:56
bool change_state(const CEGUI::EventArgs &event)
Definition: results.cpp:70
virtual ~Results()
Definition: results.cpp:15
std::shared_ptr< Results > shared
Definition: results.h:11