Emergency 20 Dokumentation  4.2.0
SelectDifficultyWindow.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 //[-------------------------------------------------------]
15 
16 
17 //[-------------------------------------------------------]
18 //[ Namespace ]
19 //[-------------------------------------------------------]
20 namespace em5
21 {
22 
23 
24  //[-------------------------------------------------------]
25  //[ Classes ]
26  //[-------------------------------------------------------]
32  {
33 
34 
35  //[-------------------------------------------------------]
36  //[ Public methods ]
37  //[-------------------------------------------------------]
38  public:
39  explicit SelectDifficultyWindow(qsf::GuiContext& guiContext);
40  virtual ~SelectDifficultyWindow();
41 
42  void setAutostartMainEvent(int32 autostartMainEventNumber);
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public virtual qsf::GuiDocument methods ]
47  //[-------------------------------------------------------]
48  public:
49  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
50 
51 
52  //[-------------------------------------------------------]
53  //[ Protected virtual em5::MainMenuWindowBase methods ]
54  //[-------------------------------------------------------]
55  protected:
56  virtual void onGoingBack() override;
57 
58 
59  //[-------------------------------------------------------]
60  //[ Protected virtual em5::GuiHotReloadSupport methods ]
61  //[-------------------------------------------------------]
62  protected:
63  virtual void onReloadGui() override;
64  virtual bool onDocumentPreShow() override;
65 
66 
67  //[-------------------------------------------------------]
68  //[ Private methods ]
69  //[-------------------------------------------------------]
70  private:
71  void setupGui();
72  void selectDifficulty(GameSettingsGroup::Difficulty difficulty);
73 
74 
75  //[-------------------------------------------------------]
76  //[ Private data ]
77  //[-------------------------------------------------------]
78  private:
79  int32 mAutostartMainEventNumber;
80 
81 
82  };
83 
84 
85 //[-------------------------------------------------------]
86 //[ Namespace ]
87 //[-------------------------------------------------------]
88 } // em5
Definition: ActionPriority.h:13
virtual void onGoingBack() override
virtual void onReloadGui() override
Gets called when the GUI should be reloaded.
SelectDifficultyWindow(qsf::GuiContext &guiContext)
Base window for main menu windows.
Definition: MainMenuWindowBase.h:40
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
signed int int32
Definition: PlatformTypes.h:180
Difficulty
Difficulty setting.
Definition: GameSettingsGroup.h:154
void setAutostartMainEvent(int32 autostartMainEventNumber)
Select difficulty window.
Definition: SelectDifficultyWindow.h:31
virtual bool onDocumentPreShow() override
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override