Emergency 20 Dokumentation  4.2.0
MotorboatTransporterLogic.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 #include <glm/glm.hpp>
19 
20 
21 //[-------------------------------------------------------]
22 //[ Namespace ]
23 //[-------------------------------------------------------]
24 namespace em5
25 {
26 
27 
28  //[-------------------------------------------------------]
29  //[ Classes ]
30  //[-------------------------------------------------------]
36  {
37 
38 
39  //[-------------------------------------------------------]
40  //[ Public definitions ]
41  //[-------------------------------------------------------]
42  public:
43  static const uint32 GAMELOGIC_TYPE_ID; // "em5::MotorboatTransporterLogic" game logic type ID
44 
45 
46  //[-------------------------------------------------------]
47  //[ Public methods ]
48  //[-------------------------------------------------------]
49  public:
55 
56 
57  //[-------------------------------------------------------]
58  //[ Public virtual qsf::GameLogic methods ]
59  //[-------------------------------------------------------]
60  public:
61  virtual bool onStartup() override;
62  virtual void onShutdown() override;
63 
64 
65  //[-------------------------------------------------------]
66  //[ Private methods ]
67  //[-------------------------------------------------------]
68  private:
69  void onSpawnRegistration(const qsf::MessageParameters& parameters);
70  void onSpawnBoatRegistration(const qsf::MessageParameters& parameters);
71 
72 
73  //[-------------------------------------------------------]
74  //[ Private data ]
75  //[-------------------------------------------------------]
76  private:
77  qsf::MessageProxy mSpawnRegistration;
78  qsf::MessageProxy mSpawnBoatRegistration;
79  bool mShowBoat;
80 
81 
82  //[-------------------------------------------------------]
83  //[ CAMP reflection system ]
84  //[-------------------------------------------------------]
85  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
86 
87 
88  };
89 
90 
91 //[-------------------------------------------------------]
92 //[ Namespace ]
93 //[-------------------------------------------------------]
94 } // em5
95 
96 
97 //[-------------------------------------------------------]
98 //[ CAMP reflection system ]
99 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
static const uint32 GAMELOGIC_TYPE_ID
Definition: MotorboatTransporterLogic.h:43
Message parameters class.
Definition: MessageParameters.h:34
unsigned int uint32
Definition: PlatformTypes.h:181
Motor boat transporter logic.
Definition: MotorboatTransporterLogic.h:35
#define EM5_API_EXPORT
Definition: Export.h:28
Message listener proxy class.
Definition: MessageProxy.h:47
#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
Game logic base class.
Definition: GameLogic.h:44