Emergency 20 Dokumentation  4.2.0
PoliceVehicleLogic.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 //[ Namespace ]
21 //[-------------------------------------------------------]
22 namespace em5
23 {
24 
25 
26  //[-------------------------------------------------------]
27  //[ Classes ]
28  //[-------------------------------------------------------]
34  {
35 
36 
37  //[-------------------------------------------------------]
38  //[ Public definitions ]
39  //[-------------------------------------------------------]
40  public:
41  static const uint32 GAMELOGIC_TYPE_ID; // "em5::PoliceVehicleLogic" game logic type ID
42 
43 
44  //[-------------------------------------------------------]
45  //[ Public methods ]
46  //[-------------------------------------------------------]
47  public:
49 
50 
51  //[-------------------------------------------------------]
52  //[ Public virtual qsf::GameLogic methods ]
53  //[-------------------------------------------------------]
54  public:
55  virtual bool onStartup() override;
56  virtual void onShutdown() override;
57 
58 
59  //[-------------------------------------------------------]
60  //[ Private definitions ]
61  //[-------------------------------------------------------]
62  private:
63  static const uint32 ACTION_PRIORITY;
64 
65 
66  //[-------------------------------------------------------]
67  //[ Private methods ]
68  //[-------------------------------------------------------]
69  private:
70  void onReadyToDepart(const qsf::MessageParameters& parameters);
71 
72 
73  //[-------------------------------------------------------]
74  //[ Private data ]
75  //[-------------------------------------------------------]
76  private:
77  qsf::MessageProxy mMessageProxyContents;
78 
79 
80  //[-------------------------------------------------------]
81  //[ CAMP reflection system ]
82  //[-------------------------------------------------------]
83  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
84 
85 
86  };
87 
88 
89 //[-------------------------------------------------------]
90 //[ Namespace ]
91 //[-------------------------------------------------------]
92 } // em5
93 
94 
95 //[-------------------------------------------------------]
96 //[ CAMP reflection system ]
97 //[-------------------------------------------------------]
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
Police vehicle logic.
Definition: PoliceVehicleLogic.h:33
#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
static const uint32 GAMELOGIC_TYPE_ID
Definition: PoliceVehicleLogic.h:41