Emergency 20 Dokumentation  4.2.0
IngamePromotionWindow.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 "em5/game/player/Player.h"
14 
15 #include <qsf/gui/GuiDocument.h>
16 
17 
18 //[-------------------------------------------------------]
19 //[ Namespace ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23 
24 
25  //[-------------------------------------------------------]
26  //[ Classes ]
27  //[-------------------------------------------------------]
33  {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Public methods ]
38  //[-------------------------------------------------------]
39  public:
40  explicit IngamePromotionWindow(qsf::GuiContext& guiContext);
41  virtual ~IngamePromotionWindow();
42  void setUpPromotionWindow(const std::string& newMap, int32 mapNumber);
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  //[ Private virtual qsf::GuiDocument methods ]
54  //[-------------------------------------------------------]
55  private:
56  virtual bool onPreShow() override;
57  virtual void onPreHide() override;
58 
59 
60  //[-------------------------------------------------------]
61  //[ Private data ]
62  //[-------------------------------------------------------]
63  private:
64  Player::BuyOption mPromotionBuyOption;
65  std::string mNextMapName;
66  int32 mMapNumber;
67 
68 
69  };
70 
71 
72 //[-------------------------------------------------------]
73 //[ Namespace ]
74 //[-------------------------------------------------------]
75 } // em5
Definition: ActionPriority.h:13
Graphical User Interface (GUI) document base class.
Definition: GuiDocument.h:51
IngamePromotionWindow(qsf::GuiContext &guiContext)
Definition: Player.h:75
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
signed int int32
Definition: PlatformTypes.h:180
EMERGENCY 5 in-game promotion window.
Definition: IngamePromotionWindow.h:32
void setUpPromotionWindow(const std::string &newMap, int32 mapNumber)