Emergency 20 Dokumentation  4.2.0
IngameMainEventFailedWindow.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 //[ Forward declarations ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21  class MainEvent;
22 }
23 
24 
25 //[-------------------------------------------------------]
26 //[ Namespace ]
27 //[-------------------------------------------------------]
28 namespace em5
29 {
30 
31 
32  //[-------------------------------------------------------]
33  //[ Classes ]
34  //[-------------------------------------------------------]
40  {
41 
42 
43  //[-------------------------------------------------------]
44  //[ Public methods ]
45  //[-------------------------------------------------------]
46  public:
47  explicit IngameMainEventFailedWindow(qsf::GuiContext& guiContext);
49 
50  void setMainEvent(MainEvent* mainEvent);
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::IngameEventFailedWindow methods]
62  //[-------------------------------------------------------]
63  protected:
64  virtual void triggerRepeatEvent();
65 
66 
67  //[-------------------------------------------------------]
68  //[ Private data ]
69  //[-------------------------------------------------------]
70  private:
71  MainEvent* mMainEvent;
72 
73 
74  };
75 
76 
77 //[-------------------------------------------------------]
78 //[ Namespace ]
79 //[-------------------------------------------------------]
80 } // em5
Definition: ActionPriority.h:13
EMERGENCY 5 main event base class.
Definition: MainEvent.h:48
IngameMainEventFailedWindow(qsf::GuiContext &guiContext)
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
void setMainEvent(MainEvent *mainEvent)
Window to show when an event fails that the player is required to solve.
Definition: IngameEventFailedWindow.h:34
Window to show when a main event fails.
Definition: IngameMainEventFailedWindow.h:39
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override