Emergency 20 Dokumentation  4.2.0
FreeplayFailedWindow.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 FreeplayFailedWindow(qsf::GuiContext& guiContext);
39  virtual ~FreeplayFailedWindow();
40 
41  void setFreeplayResults(uint32 score, uint32 eventSuccess, uint32 eventFailed, const std::string& time);
42 
43 
44  //[-------------------------------------------------------]
45  //[ Public virtual qsf::GuiDocument methods ]
46  //[-------------------------------------------------------]
47  public:
48  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
49 
50 
51  //[-------------------------------------------------------]
52  //[ Protected virtual em5::GuiHotReloadSupport methods ]
53  //[-------------------------------------------------------]
54  protected:
55  virtual void onReloadGui() override;
56 
57 
58  //[-------------------------------------------------------]
59  //[ Private methods ]
60  //[-------------------------------------------------------]
61  private:
66  void publish(bool state);
67  void setupGui();
68 
69 
70  //[-------------------------------------------------------]
71  //[ Private data ]
72  //[-------------------------------------------------------]
73  private:
74  uint32 mScore;
75 
76 
77  };
78 
79 
80 //[-------------------------------------------------------]
81 //[ Namespace ]
82 //[-------------------------------------------------------]
83 } // em5
Definition: ActionPriority.h:13
virtual void onReloadGui() override
Gets called when the GUI should be reloaded.
unsigned int uint32
Definition: PlatformTypes.h:181
A base class which adds GUI hot reloading support to an GUI document.
Definition: GuiHotReloadSupport.h:34
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
FreeplayFailedWindow(qsf::GuiContext &guiContext)
void setFreeplayResults(uint32 score, uint32 eventSuccess, uint32 eventFailed, const std::string &time)
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
EMERGENCY 5 freeplay failed window HUD element.
Definition: FreeplayFailedWindow.h:30