Emergency 20 Dokumentation  4.2.0
VehicleExtinguishLogic.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 
15 #include <qsf/job/JobProxy.h>
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::VehicleExtinguishLogic" game logic type ID
42 
43 
44  //[-------------------------------------------------------]
45  //[ Public methods ]
46  //[-------------------------------------------------------]
47  public:
53 
61  void extinguishAutomatism();
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 updateSimulation(const qsf::JobArguments& jobArguments);
77  void performAutomatism();
78 
79 
80  //[-------------------------------------------------------]
81  //[ Private data ]
82  //[-------------------------------------------------------]
83  private:
84  qsf::Time mTimeWaiting;
85 
86  // Job proxies
87  qsf::JobProxy mSimulationJobProxy;
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
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
static const uint32 GAMELOGIC_TYPE_ID
Definition: VehicleExtinguishLogic.h:41
Job arguments class: holds data to be passed to the called job method by the job manager.
Definition: JobArguments.h:40
Vehicle extinguish logic.
Definition: VehicleExtinguishLogic.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
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32