Emergency 20 Dokumentation  4.2.0
ParamedicLogic.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 "em5/audio/AudioProxy.h"
15 
16 #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::ParamedicLogic" game logic type ID
42 
43 
44  //[-------------------------------------------------------]
45  //[ Public methods ]
46  //[-------------------------------------------------------]
47  public:
49 
57  void injuryParamedicTeam(const qsf::MessageParameters& parameters);
58 
59 
60  //[-------------------------------------------------------]
61  //[ Public virtual qsf::GameLogic methods ]
62  //[-------------------------------------------------------]
63  public:
64  virtual bool onStartup() override;
65  virtual void onShutdown() override;
66 
67 
68  //[-------------------------------------------------------]
69  //[ Private definitions ]
70  //[-------------------------------------------------------]
71  private:
72  static const uint32 ACTION_PRIORITY;
73 
74 
75  //[-------------------------------------------------------]
76  //[ Private methods ]
77  //[-------------------------------------------------------]
78  private:
79  // Job update
80  void updateSimulation(const qsf::JobArguments& jobArguments);
81 
82  void performAutomatism();
83  void pickupPersonAutomatism();
84  void placePersonAutomatism();
85 
86 
87  //[-------------------------------------------------------]
88  //[ Private data ]
89  //[-------------------------------------------------------]
90  private:
91  // Job proxies for regular update
92  qsf::JobProxy mSimulationJobProxy;
93  qsf::Time mTimeWaiting;
94  AudioProxy mAudioProxy;
95 
96  qsf::MessageProxy mInjuryParamedicTeamProxy;
97 
98 
99  //[-------------------------------------------------------]
100  //[ CAMP reflection system ]
101  //[-------------------------------------------------------]
102  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
103 
104 
105  };
106 
107 
108 //[-------------------------------------------------------]
109 //[ Namespace ]
110 //[-------------------------------------------------------]
111 } // em5
112 
113 
114 //[-------------------------------------------------------]
115 //[ CAMP reflection system ]
116 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Job proxy class.
Definition: JobProxy.h:51
Message parameters class.
Definition: MessageParameters.h:34
Carry person logic.
Definition: CarryPersonLogic.h:33
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
Message listener proxy class.
Definition: MessageProxy.h:47
Job arguments class: holds data to be passed to the called job method by the job manager.
Definition: JobArguments.h:40
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
Extended audio proxy for easier multiplay usage.
Definition: AudioProxy.h:47
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
static const uint32 GAMELOGIC_TYPE_ID
Definition: ParamedicLogic.h:41
Paramedic logic.
Definition: ParamedicLogic.h:33
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32