Emergency 20 Dokumentation  4.2.0
StartGame.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 #include <qsf/job/JobProxy.h>
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23  class AppStoreWindow;
24 }
25 
26 
27 //[-------------------------------------------------------]
28 //[ Namespace ]
29 //[-------------------------------------------------------]
30 namespace em5
31 {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Classes ]
36  //[-------------------------------------------------------]
42  {
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public static methods ]
47  //[-------------------------------------------------------]
48  public:
49  static void updateButtons(qsf::GuiDocument& guiDocument);
50 
51 
52  //[-------------------------------------------------------]
53  //[ Public methods ]
54  //[-------------------------------------------------------]
55  public:
56  explicit StartGame(qsf::GuiContext& guiContext);
57 
58 
59  //[-------------------------------------------------------]
60  //[ Public virtual qsf::GuiDocument methods ]
61  //[-------------------------------------------------------]
62  public:
63  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
64 
65 
66  //[-------------------------------------------------------]
67  //[ Protected virtual em5::MainMenuWindowBase methods ]
68  //[-------------------------------------------------------]
69  protected:
70  virtual void onGoingBack() override;
71 
72 
73  //[-------------------------------------------------------]
74  //[ Protected virtual em5::GuiHotReloadSupport methods ]
75  //[-------------------------------------------------------]
76  protected:
77  virtual void onReloadGui() override;
78  virtual bool onDocumentPreShow() override;
79  virtual void onDocumentPreHide() override;
80 
81 
82  //[-------------------------------------------------------]
83  //[ Private methods ]
84  //[-------------------------------------------------------]
85  private:
86  void setupGui();
87  void blinkCampaignButton();
88  void onBlink(const qsf::JobArguments& jobArguments);
89  void onUpgrade();
90 
91 
92  //[-------------------------------------------------------]
93  //[ Private data ]
94  //[-------------------------------------------------------]
95  private:
96  float mBlinkPhase;
97  qsf::JobProxy mBlinkJobProxy;
98  AppStoreWindow* mAppStoreWindow;
99 
100 
101  };
102 
103 
104 //[-------------------------------------------------------]
105 //[ Namespace ]
106 //[-------------------------------------------------------]
107 } // em5
Definition: ActionPriority.h:13
Job proxy class.
Definition: JobProxy.h:51
virtual void onDocumentPreHide() override
Start game window.
Definition: StartGame.h:41
Graphical User Interface (GUI) document base class.
Definition: GuiDocument.h:51
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
Job arguments class: holds data to be passed to the called job method by the job manager.
Definition: JobArguments.h:40
Base window for main menu windows.
Definition: MainMenuWindowBase.h:40
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
virtual void onGoingBack() override
virtual void onReloadGui() override
Gets called when the GUI should be reloaded.
StartGame(qsf::GuiContext &guiContext)
virtual bool onDocumentPreShow() override
EMERGENCY 5 Mac App Store window.
Definition: AppStoreWindow.h:30
static void updateButtons(qsf::GuiDocument &guiDocument)