Emergency 20 Dokumentation  4.2.0
IngameMultiplayerCOOPEndWindow.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 //[-------------------------------------------------------]
13 #include <qsf/gui/GuiDocument.h>
14 #include <qsf/math/Color3.h>
15 
16 
17 //[-------------------------------------------------------]
18 //[ Forward declarations ]
19 //[-------------------------------------------------------]
20 namespace em5
21 {
22  namespace multiplayer
23  {
24  struct GameModeUpdateData;
25  }
26 }
27 
28 
29 //[-------------------------------------------------------]
30 //[ Namespace ]
31 //[-------------------------------------------------------]
32 namespace em5
33 {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Classes ]
38  //[-------------------------------------------------------]
44  {
45 
46 
47  //[-------------------------------------------------------]
48  //[ Public definitions ]
49  //[-------------------------------------------------------]
50  public:
51  // This struct stores the player informations
53  {
54  std::string name;
57  };
58 
59 
60  //[-------------------------------------------------------]
61  //[ Public methods ]
62  //[-------------------------------------------------------]
63  public:
64  explicit IngameMultiplayerCOOPEndWindow(qsf::GuiContext& guiContext);
66 
67  void setEventCount(uint32 failedEvents, uint32 succeededEvents);
68 
69  void incrementFailedEvents();
71 
72 
73  //[-------------------------------------------------------]
74  //[ Public virtual qsf::GuiDocument methods ]
75  //[-------------------------------------------------------]
76  public:
77  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
78 
79 
80  //[-------------------------------------------------------]
81  //[ Private virtual qsf::GuiDocument methods ]
82  //[-------------------------------------------------------]
83  private:
84  virtual bool onPreShow() override;
85 
86 
87  //[-------------------------------------------------------]
88  //[ Private methods ]
89  //[-------------------------------------------------------]
90  private:
91  void onGameModeDataChanged(const multiplayer::GameModeUpdateData& gameModeData);
92 
93 
94  //[-------------------------------------------------------]
95  //[ Private data ]
96  //[-------------------------------------------------------]
97  private:
98  std::vector<PlayerInformation> mPlayerList;
99 
100  uint32 mFailedEvents;
101  uint32 mSucceededEvents;
102 
103 
104  };
105 
106 
107 //[-------------------------------------------------------]
108 //[ Namespace ]
109 //[-------------------------------------------------------]
110 } // em5
Definition: ActionPriority.h:13
void setEventCount(uint32 failedEvents, uint32 succeededEvents)
qsf::Color3 color
Definition: IngameMultiplayerCOOPEndWindow.h:56
Definition: IngameMultiplayerCOOPEndWindow.h:52
EMERGENCY 5 multiplayer PvP end screen.
Definition: IngameMultiplayerCOOPEndWindow.h:43
IngameMultiplayerCOOPEndWindow(qsf::GuiContext &guiContext)
unsigned int uint32
Definition: PlatformTypes.h:181
Graphical User Interface (GUI) document base class.
Definition: GuiDocument.h:51
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
uint32 score
Definition: IngameMultiplayerCOOPEndWindow.h:55
Color class with red, green and blue component.
Definition: Color3.h:30
Definition: OperationMessages.h:346
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
std::string name
Definition: IngameMultiplayerCOOPEndWindow.h:54