Emergency 20 Dokumentation  4.2.0
PersonSpawnPointComponent.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  {
48  PERSONSPAWNPOINTTYPE_TRANSIT
49  };
50 
51 
52  //[-------------------------------------------------------]
53  //[ Public methods ]
54  //[-------------------------------------------------------]
55  public:
63  inline explicit PersonSpawnPointComponent(qsf::Prototype* prototype);
64 
69  inline virtual ~PersonSpawnPointComponent();
70 
71  inline PersonSpawnPointType getPersonSpawnPointType() const;
72  inline void setPersonSpawnPointType(PersonSpawnPointType personSpawnPointType);
73 
74 
75  //[-------------------------------------------------------]
76  //[ Public virtual em5::SpawnPointComponent methods ]
77  //[-------------------------------------------------------]
78  public:
79  inline virtual bool isEntry() const override;
80  inline virtual bool isExit() const override;
81  inline virtual bool isTransit() const override;
82 
83 
84  //[-------------------------------------------------------]
85  //[ Public virtual qsf::Component methods ]
86  //[-------------------------------------------------------]
87  public:
88  virtual void serialize(qsf::BinarySerializer& serializer) override;
89 
90 
91  //[-------------------------------------------------------]
92  //[ Private data ]
93  //[-------------------------------------------------------]
94  private:
95  PersonSpawnPointType mSpawnPointType;
96 
97 
98  //[-------------------------------------------------------]
99  //[ CAMP reflection system ]
100  //[-------------------------------------------------------]
101  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 //[ Implementation ]
116 //[-------------------------------------------------------]
117 #include "em5/component/spawnpoint/civilist/PersonSpawnPointComponent-inl.h"
118 
119 
120 //[-------------------------------------------------------]
121 //[ CAMP reflection system ]
122 //[-------------------------------------------------------]
124 QSF_CAMP_TYPE_NONCOPYABLE(em5::PersonSpawnPointComponent::PersonSpawnPointType)
125 QSF_CAMP_ARRAY_MAPPER_DEFINITION(em5::PersonSpawnPointComponent::PersonListInterface)
Definition: ActionPriority.h:13
PersonSpawnPointType
Definition: PersonSpawnPointComponent.h:43
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: AreaConfiguration.h:58
Definition: PersonSpawnPointComponent.h:46
Definition: PersonSpawnPointComponent.h:45
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
#define QSF_CAMP_ARRAY_PROPERTY(propertyName, ownerType, elementType)
Definition: CampClass.h:262
static const uint32 COMPONENT_ID
"em5::PersonSpawnPointComponent" unique component ID
Definition: PersonSpawnPointComponent.h:41
Definition: PersonSpawnPointComponent.h:47
EMERGENCY 5 civilist spawn point component base class.
Definition: CivilistSpawnPointComponent.h:32
Prototype class.
Definition: Prototype.h:100
EMERGENCY 5 vehicle spawn point component.
Definition: PersonSpawnPointComponent.h:33
Binary serializer class.
Definition: BinarySerializer.h:35