Emergency 20 Dokumentation  4.2.0
BoatDropPointComponent.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 
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 COMPONENT_ID;
42 
43 
44  //[-------------------------------------------------------]
45  //[ Public methods ]
46  //[-------------------------------------------------------]
47  public:
55  explicit BoatDropPointComponent(qsf::Prototype* prototype);
56 
61  virtual ~BoatDropPointComponent();
62 
67  void highlightPosition(bool highlight);
68 
73  inline uint64 getLakeId() const;
74  inline void setLakeId(uint64 lakeId);
75 
76  inline uint64 getTransporterEntityId() const;
77  inline void setTransporterEntityId(uint64 transporterEntityId);
78 
79  inline uint64 getBoatEntityId() const;
80  inline void setBoatEntityId(uint64 boatEntityId);
81 
82  inline size_t getDropMarkerIndex() const;
83  inline void setDropMarkerIndex(size_t dropPointIndex);
84 
85  qsf::TransformComponent* getBoatDropTransform() const;
86 
87 
88  //[-------------------------------------------------------]
89  //[ Public virtual qsf::Component methods ]
90  //[-------------------------------------------------------]
91  public:
92  virtual void serialize(qsf::BinarySerializer& serializer) override;
93 
94 
95  //[-------------------------------------------------------]
96  //[ Private definition ]
97  //[-------------------------------------------------------]
98  private:
99  typedef std::vector<uint64> EntityIdArray;
100 
101 
102  //[-------------------------------------------------------]
103  //[ Private data ]
104  //[-------------------------------------------------------]
105  private:
106  uint64 mTransporterEntityId;
107  uint64 mLakeId;
108  uint64 mBoatEntityId;
109  EntityIdArray mDropMarkerIds;
110  qsf::DebugDrawProxy mDebugDrawProxy;
111  size_t mDropMarkerIndex;
112 
113 
114  //[-------------------------------------------------------]
115  //[ CAMP reflection system ]
116  //[-------------------------------------------------------]
117  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
118 
119  public:
120  QSF_CAMP_ARRAY_INTERFACE_CLASS_WITH_VARIABLE(EntityIdArrayInterface, BoatDropPointComponent, std::vector<uint64>, uint64);
121  EntityIdArrayInterface DropMarkerArray;
122 
123 
124  };
125 
126 
127 //[-------------------------------------------------------]
128 //[ Namespace ]
129 //[-------------------------------------------------------]
130 } // em5
131 
132 
133 //[-------------------------------------------------------]
134 //[ Implementation ]
135 //[-------------------------------------------------------]
136 #include "em5/component/objects/BoatDropPointComponent-inl.h"
137 
138 
139 //[-------------------------------------------------------]
140 //[ CAMP reflection system ]
141 //[-------------------------------------------------------]
143 QSF_CAMP_ARRAY_MAPPER_DEFINITION(em5::BoatDropPointComponent::EntityIdArrayInterface)
Definition: ActionPriority.h:13
Abstract component class.
Definition: Component.h:105
unsigned int uint32
Definition: PlatformTypes.h:181
Transform component class.
Definition: TransformComponent.h:33
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: AreaConfiguration.h:58
#define QSF_CAMP_ARRAY_INTERFACE_CLASS_WITH_VARIABLE(interfaceClassName, ownerType, variableType, elementType)
Definition: CampClass.h:241
uint64_t uint64
Definition: PlatformTypes.h:184
void serialize(BinarySerializer &serializer, BitFlagSet< STORAGE, ENUM > &bitFlagSet)
Definition: BitFlagSet.h:359
QSF_CAMP_ARRAY_MAPPER_DEFINITION(qsf::ai::TrafficLightTimerComponent::ManagedTrafficLightList)
Debug draw proxy class.
Definition: DebugDrawProxy.h:46
#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
static const uint32 COMPONENT_ID
"em5::BoatDropPointComponent" unique component ID
Definition: BoatDropPointComponent.h:41
Prototype class.
Definition: Prototype.h:100
Binary serializer class.
Definition: BinarySerializer.h:35
EMERGENCY 5 boat drop point component.
Definition: BoatDropPointComponent.h:33