Emergency 20 Dokumentation  4.2.0
MultiplayCoopGameMode.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  namespace multiplayer
22  {
23  namespace server
24  {
25  class Host;
26  }
27  }
28 }
29 
30 
31 //[-------------------------------------------------------]
32 //[ Namespace ]
33 //[-------------------------------------------------------]
34 namespace em5
35 {
36 
37 
38  //[-------------------------------------------------------]
39  //[ Classes ]
40  //[-------------------------------------------------------]
46  {
47 
48 
49  //[-------------------------------------------------------]
50  //[ Public methods ]
51  //[-------------------------------------------------------]
52  public:
58 
63  virtual ~MultiplayCoopGameMode();
64 
65 
66  //[-------------------------------------------------------]
67  //[ Public virtual em5::GameMode methods ]
68  //[-------------------------------------------------------]
69  public:
70  virtual std::string getGameModeAsString() const override;
71  virtual void startup() override;
72  virtual void updateGameMode(qsf::Time timePassed) override;
73  virtual void onGameLoaded() override;
74 
75 
76  //[-------------------------------------------------------]
77  //[ Protected virtual em5::FreeplayGameMode methods ]
78  //[-------------------------------------------------------]
79  protected:
80  virtual void onReceiveObjectivePoints(const qsf::MessageParameters& parameters) override;
81  virtual void onSetPointGain(const FreeplayEvent::EventResult& eventResult, int32 pointGain) override;
82  virtual void onFirstEventCompleted() override;
83 
84 
85  //[-------------------------------------------------------]
86  //[ Private data ]
87  //[-------------------------------------------------------]
88  private:
89  qsf::Time mRemainingTime;
90  bool mEndlessMode;
91  multiplayer::server::Host* mMultiplayerHost;
92 
93 
94  //[-------------------------------------------------------]
95  //[ CAMP reflection system ]
96  //[-------------------------------------------------------]
97  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
98 
99 
100  };
101 
102 
103 //[-------------------------------------------------------]
104 //[ Namespace ]
105 //[-------------------------------------------------------]
106 } // em5
107 
108 
109 //[-------------------------------------------------------]
110 //[ CAMP reflection system ]
111 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Definition: FreeplayEvent.h:110
virtual void updateGameMode(qsf::Time timePassed) override
Message parameters class.
Definition: MessageParameters.h:34
virtual void onSetPointGain(const FreeplayEvent::EventResult &eventResult, int32 pointGain) override
virtual void onGameLoaded() override
EMERGENCY 5 cooperative multiplay game mode.
Definition: MultiplayCoopGameMode.h:45
MultiplayCoopGameMode()
Default constructor.
virtual void onFirstEventCompleted() override
virtual void onReceiveObjectivePoints(const qsf::MessageParameters &parameters) override
virtual std::string getGameModeAsString() const override
Return the game mode type as string (lowercase)
EMERGENCY 5 multiplayer host class.
Definition: Host.h:82
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
signed int int32
Definition: PlatformTypes.h:180
virtual ~MultiplayCoopGameMode()
Destructor.
virtual void startup() override
EMERGENCY 5 freeplay game mode.
Definition: FreeplayGameMode.h:48
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32