Emergency 20 Dokumentation  4.2.0
FollowedByHelicopterLogic.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 #include <qsf/job/JobProxy.h>
15 
16 
17 //[-------------------------------------------------------]
18 //[ Forward declarations ]
19 //[-------------------------------------------------------]
20 namespace qsf
21 {
22  class JobArguments;
23 }
24 
25 
26 //[-------------------------------------------------------]
27 //[ Namespace ]
28 //[-------------------------------------------------------]
29 namespace em5
30 {
31 
32 
33  //[-------------------------------------------------------]
34  //[ Classes ]
35  //[-------------------------------------------------------]
41  {
42 
43 
44  //[-------------------------------------------------------]
45  //[ Public definitions ]
46  //[-------------------------------------------------------]
47  public:
48  static const uint32 GAMELOGIC_TYPE_ID; // "em5::FollowedByHelicopterLogic" game logic type ID
49 
50 
51  //[-------------------------------------------------------]
52  //[ Public methods ]
53  //[-------------------------------------------------------]
54  public:
56  void setFollowingHelicopter(uint64 magnetEntityId);
57 
58 
59  //[-------------------------------------------------------]
60  //[ Public virtual qsf::GameLogic methods ]
61  //[-------------------------------------------------------]
62  public:
63  virtual bool onStartup() override;
64  virtual void onShutdown() override;
65 
66 
67  //[-------------------------------------------------------]
68  //[ Private methods ]
69  //[-------------------------------------------------------]
70  private:
71  // Job updates
72  void updateSimulation(const qsf::JobArguments& jobArguments);
73 
74 
75  //[-------------------------------------------------------]
76  //[ Private definitions ]
77  //[-------------------------------------------------------]
78  private:
79  static const uint32 ACTION_PRIORITY;
80 
81 
82  //[-------------------------------------------------------]
83  //[ Private data ]
84  //[-------------------------------------------------------]
85  private:
86  qsf::JobProxy mSimulationJobProxy;
87  uint64 mHelicopterEntityId;
88 
89 
90  //[-------------------------------------------------------]
91  //[ CAMP reflection system ]
92  //[-------------------------------------------------------]
93  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
94 
95 
96  };
97 
98 
99 //[-------------------------------------------------------]
100 //[ Namespace ]
101 //[-------------------------------------------------------]
102 } // em5
103 
104 
105 //[-------------------------------------------------------]
106 //[ CAMP reflection system ]
107 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Job proxy class.
Definition: JobProxy.h:51
A game logic that lets persons wave when they get followed by a helicopter.
Definition: FollowedByHelicopterLogic.h:40
unsigned int uint32
Definition: PlatformTypes.h:181
uint64_t uint64
Definition: PlatformTypes.h:184
Job arguments class: holds data to be passed to the called job method by the job manager.
Definition: JobArguments.h:40
Definition: PickupPersonByParamedicAction.h:21
static const uint32 GAMELOGIC_TYPE_ID
Definition: FollowedByHelicopterLogic.h:48
#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
virtual void onShutdown() override
Shutdown the game logic.
Game logic base class.
Definition: GameLogic.h:44
void setFollowingHelicopter(uint64 magnetEntityId)
virtual bool onStartup() override
Startup the game logic.