Emergency 20 Dokumentation  4.2.0
IngameFreeplayEndWindow.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
14 
15 
16 //[-------------------------------------------------------]
17 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
23  //[-------------------------------------------------------]
24  //[ Classes ]
25  //[-------------------------------------------------------]
31  {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Public methods ]
36  //[-------------------------------------------------------]
37  public:
38  explicit IngameFreeplayEndWindow(qsf::GuiContext& guiContext);
39  virtual ~IngameFreeplayEndWindow();
40 
41  void setFreeplayResults(uint32 score, const std::string& time);
42 
50  void showIngameFreeplayEndWindow(bool stopApplication = false);
51 
52 
53  //[-------------------------------------------------------]
54  //[ Public virtual qsf::GuiDocument methods ]
55  //[-------------------------------------------------------]
56  public:
57  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
58 
59 
60  //[-------------------------------------------------------]
61  //[ Protected virtual em5::GuiHotReloadSupport methods ]
62  //[-------------------------------------------------------]
63  protected:
64  virtual void onReloadGui() override;
65 
66 
67  //[-------------------------------------------------------]
68  //[ Private methods ]
69  //[-------------------------------------------------------]
70  private:
75  void publish(bool state);
76  void setupGui();
77 
78 
79  //[-------------------------------------------------------]
80  //[ Private data ]
81  //[-------------------------------------------------------]
82  // TODO(co) Please, make this private
83  public:
88 
89 
90  };
91 
92 
93 //[-------------------------------------------------------]
94 //[ Namespace ]
95 //[-------------------------------------------------------]
96 } // em5
Definition: ActionPriority.h:13
bool mStopApplication
If this member true the appliction will stop if the player click the next button. ...
Definition: IngameFreeplayEndWindow.h:87
unsigned int uint32
Definition: PlatformTypes.h:181
uint32 mFailedEvents
Hold all failed events.
Definition: IngameFreeplayEndWindow.h:85
uint32 mSuccessEvents
Hold all success events.
Definition: IngameFreeplayEndWindow.h:86
A base class which adds GUI hot reloading support to an GUI document.
Definition: GuiHotReloadSupport.h:34
EMERGENCY 5 freeplay end window HUD element.
Definition: IngameFreeplayEndWindow.h:30
uint32 mScore
Hold the score.
Definition: IngameFreeplayEndWindow.h:84
virtual void onReloadGui() override
Gets called when the GUI should be reloaded.
IngameFreeplayEndWindow(qsf::GuiContext &guiContext)
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
void setFreeplayResults(uint32 score, const std::string &time)
void showIngameFreeplayEndWindow(bool stopApplication=false)
Use this function to show the freeplay end window.
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override