Emergency 20 Dokumentation  4.2.0
UnitHelper.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 
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23  class CommandableComponent;
24  class Player;
25 }
26 namespace qsf
27 {
28  class Entity;
29 }
30 
31 
32 //[-------------------------------------------------------]
33 //[ Namespace ]
34 //[-------------------------------------------------------]
35 namespace em5
36 {
37 
38 
39  //[-------------------------------------------------------]
40  //[ Classes ]
41  //[-------------------------------------------------------]
47  {
48 
49 
50  //[-------------------------------------------------------]
51  //[ Public methods ]
52  //[-------------------------------------------------------]
53  public:
54  explicit UnitHelper(qsf::Entity& entity);
55  ~UnitHelper();
56 
61  bool containsInjuredPersons();
62 
67  bool containsGangster();
68 
73  bool isAmbulanceNEF() const;
78  bool isAmbulanceRTW() const;
83  bool isAmbulanceIMT() const;
88  bool isAmbulanceHelicopter() const;
93  bool isAmbulanceDoctor() const;
98  bool isAmbulanceParamedics() const;
103  bool isAmbulanceRoadVehicle() const;
108  bool isAmbulanceRescueDogLeader() const;
113  bool isAmbulanceRescueDog() const;
118  bool isPoliceSTW() const;
123  bool isPoliceMTW() const;
128  bool isPoliceSEKHeli() const;
133  bool isPoliceTSEKR() const;
138  bool isPoliceSEKR() const;
143  bool isPoliceDogCar() const;
148  bool isPoliceRoadVehicle() const;
153  bool isPolicePerson() const;
158  bool isPoliceSEKPerson() const;
163  bool isPoliceDog() const;
168  bool isFireFighterRW() const;
173  bool isFireFighterDECONP() const;
178  bool isFireFighterDLK() const;
183  bool isFireFighterFLB() const;
188  bool isFireFighterBoat() const;
193  bool isFireFighterBoatTransporter() const;
198  bool isFireFighterCommandoCar() const;
203  bool isFireFighterDiverTransporter() const;
208  bool isFireFighterTLF() const;
213  bool isFireFighterRoadVehicle() const;
218  bool isFireFighterPerson() const;
223  bool isFireFighterPersonWithABCSuitActive() const;
228  bool isFireFighterDrone() const;
233  bool isTechEngineerCar() const;
238  bool isTechTowcar() const;
243  bool isTechCrane() const;
248  bool isMedievalDoctor() const;
253  bool isMedievalGuardsman() const;
254 
255  bool isUnit(const qsf::NamedIdentifier& unitName) const;
256 
257 
258  //[-------------------------------------------------------]
259  //[ Private data ]
260  //[-------------------------------------------------------]
261  private:
262  qsf::Entity& mEntity;
263  CommandableComponent* mCommandableComponent;
264 
265 
266  };
267 
268 
269 //[-------------------------------------------------------]
270 //[ Namespace ]
271 //[-------------------------------------------------------]
272 } // em5
Definition: ActionPriority.h:13
Entity class.
Definition: Entity.h:46
EMERGENCY 5 unit helper class.
Definition: UnitHelper.h:46
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: PickupPersonByParamedicAction.h:21
Class combining strings with their hashes.
Definition: NamedIdentifier.h:34
Commandable component class.
Definition: CommandableComponent.h:46