Emergency 20 Dokumentation  4.2.0
VehicleSpawnPointComponent.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 
15 
16 //[-------------------------------------------------------]
17 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
23  //[-------------------------------------------------------]
24  //[ Classes ]
25  //[-------------------------------------------------------]
34  {
35 
36 
37  //[-------------------------------------------------------]
38  //[ Public definitions ]
39  //[-------------------------------------------------------]
40  public:
41  static const uint32 COMPONENT_ID;
42 
44  {
47  VEHICLESPAWNPOINTTYPE_TRANSIT
48  };
49 
50 
51  //[-------------------------------------------------------]
52  //[ Public methods ]
53  //[-------------------------------------------------------]
54  public:
62  inline explicit VehicleSpawnPointComponent(qsf::Prototype* prototype);
63 
68  inline virtual ~VehicleSpawnPointComponent();
69 
70  inline VehicleSpawnPointType getVehicleSpawnPointType() const;
71  inline void setVehicleSpawnPointType(VehicleSpawnPointType vehicleSpawnPointType);
72 
73 
74  //[-------------------------------------------------------]
75  //[ Public virtual em5::SpawnPointComponent methods ]
76  //[-------------------------------------------------------]
77  public:
78  inline virtual bool isEntry() const override;
79  inline virtual bool isExit() const override;
80  inline virtual bool isTransit() const override;
81 
82 
83  //[-------------------------------------------------------]
84  //[ Public virtual qsf::Component methods ]
85  //[-------------------------------------------------------]
86  public:
87  virtual void serialize(qsf::BinarySerializer& serializer) override;
88 
89 
90  //[-------------------------------------------------------]
91  //[ Private data ]
92  //[-------------------------------------------------------]
93  private:
94  VehicleSpawnPointType mSpawnPointType;
95 
96 
97  //[-------------------------------------------------------]
98  //[ CAMP reflection system ]
99  //[-------------------------------------------------------]
100  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
102 
103 
104  };
105 
106 
107 //[-------------------------------------------------------]
108 //[ Namespace ]
109 //[-------------------------------------------------------]
110 } // em5
111 
112 
113 //[-------------------------------------------------------]
114 //[ Implementation ]
115 //[-------------------------------------------------------]
116 #include "em5/component/spawnpoint/civilist/VehicleSpawnPointComponent-inl.h"
117 
118 
119 //[-------------------------------------------------------]
120 //[ CAMP reflection system ]
121 //[-------------------------------------------------------]
123 QSF_CAMP_TYPE_NONCOPYABLE(em5::VehicleSpawnPointComponent::VehicleSpawnPointType)
124 QSF_CAMP_ARRAY_MAPPER_DEFINITION(em5::VehicleSpawnPointComponent::VehicleListInterface)
Definition: ActionPriority.h:13
Definition: VehicleSpawnPointComponent.h:46
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: AreaConfiguration.h:58
VehicleSpawnPointType
Definition: VehicleSpawnPointComponent.h:43
void serialize(BinarySerializer &serializer, BitFlagSet< STORAGE, ENUM > &bitFlagSet)
Definition: BitFlagSet.h:359
QSF_CAMP_ARRAY_MAPPER_DEFINITION(qsf::ai::TrafficLightTimerComponent::ManagedTrafficLightList)
#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
EMERGENCY 5 vehicle spawn point component.
Definition: VehicleSpawnPointComponent.h:33
Definition: VehicleSpawnPointComponent.h:45
#define QSF_CAMP_ARRAY_PROPERTY(propertyName, ownerType, elementType)
Definition: CampClass.h:262
EMERGENCY 5 civilist spawn point component base class.
Definition: CivilistSpawnPointComponent.h:32
Prototype class.
Definition: Prototype.h:100
Binary serializer class.
Definition: BinarySerializer.h:35
static const uint32 COMPONENT_ID
"em5::VehicleSpawnPointComponent" unique component ID
Definition: VehicleSpawnPointComponent.h:41