Emergency 20 Dokumentation  4.2.0
FireDroneLogic.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/Export.h"
14 
17 
18 
19 //[-------------------------------------------------------]
20 //[ Forward declarations ]
21 //[-------------------------------------------------------]
22 namespace qsf
23 {
24  class Entity;
25 }
26 
27 
28 //[-------------------------------------------------------]
29 //[ Namespace ]
30 //[-------------------------------------------------------]
31 namespace em5
32 {
33 
34 
35  //[-------------------------------------------------------]
36  //[ Classes ]
37  //[-------------------------------------------------------]
43  {
44 
45 
46  //[-------------------------------------------------------]
47  //[ Public definitions ]
48  //[-------------------------------------------------------]
49  public:
50  static const uint32 GAMELOGIC_TYPE_ID; // "em5::FireDroneLogic" game logic type ID
51 
52 
53  //[-------------------------------------------------------]
54  //[ Public methods ]
55  //[-------------------------------------------------------]
56  public:
62 
63 
64  //[-------------------------------------------------------]
65  //[ Public virtual qsf::GameLogic methods ]
66  //[-------------------------------------------------------]
67  public:
68  virtual bool onStartup() override;
69  virtual void onShutdown() override;
70 
71 
72  //[-------------------------------------------------------]
73  //[ Private methods ]
74  //[-------------------------------------------------------]
75  private:
76  void onPreMoveMessage(const qsf::MessageParameters& parameters);
77  void onEndMoveMessage(const qsf::MessageParameters& parameters);
78 
79  bool isDroneTransporterIntact() const;
80 
81 
82  //[-------------------------------------------------------]
83  //[ Private data ]
84  //[-------------------------------------------------------]
85  private:
86  qsf::WeakPtr<qsf::Entity> mTransporterEntity;
87 
88  // Messages
89  qsf::MessageProxy mOnPreMoveMessageProxy;
90  qsf::MessageProxy mOnEndMoveMessageProxy;
91  qsf::MessageProxy mOnCallBackDroneMessageProxy;
92  qsf::MessageProxy mOnTransporterStartBurningProxy;
93 
94 
95  //[-------------------------------------------------------]
96  //[ CAMP reflection system ]
97  //[-------------------------------------------------------]
98  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
99 
100 
101  };
102 
103 
104 //[-------------------------------------------------------]
105 //[ Namespace ]
106 //[-------------------------------------------------------]
107 } // em5
108 
109 
110 //[-------------------------------------------------------]
111 //[ CAMP reflection system ]
112 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Message parameters class.
Definition: MessageParameters.h:34
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
Message listener proxy class.
Definition: MessageProxy.h:47
Definition: PickupPersonByParamedicAction.h:21
#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
static const uint32 GAMELOGIC_TYPE_ID
Definition: FireDroneLogic.h:50
Game logic base class.
Definition: GameLogic.h:44
EMERGENCY 5 fire drone transport logic.
Definition: FireDroneLogic.h:42