Emergency 20 Dokumentation  4.2.0
BoatDropPointComponent-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Namespace ]
6 //[-------------------------------------------------------]
7 namespace em5
8 {
9 
10 
11  //[-------------------------------------------------------]
12  //[ Public methods ]
13  //[-------------------------------------------------------]
15  {
16  return mTransporterEntityId;
17  }
18 
19  inline void BoatDropPointComponent::setTransporterEntityId(uint64 transporterEntityId)
20  {
21  mTransporterEntityId = transporterEntityId;
22  }
23 
25  {
26  return mBoatEntityId;
27  }
28 
30  {
31  mBoatEntityId = boatEntityId;
32  }
33 
35  {
36  return mLakeId;
37  }
38 
40  {
41  mLakeId = lakeId;
42  }
43 
45  {
46  return mDropMarkerIndex;
47  }
48 
49  inline void BoatDropPointComponent::setDropMarkerIndex(size_t dropMarkerIndex)
50  {
51  mDropMarkerIndex = dropMarkerIndex;
52  }
53 
54 
55  //[-------------------------------------------------------]
56  //[ CAMP reflection system ]
57  //[-------------------------------------------------------]
58  inline std::size_t BoatDropPointComponent::EntityIdArrayInterface::size() const
59  {
60  return getVariable().size();
61  }
62 
63  inline const uint64& BoatDropPointComponent::EntityIdArrayInterface::get(std::size_t index) const
64  {
65  return getVariable()[index];
66  }
67 
68  inline void BoatDropPointComponent::EntityIdArrayInterface::set(std::size_t index, const uint64& value)
69  {
70  getVariable()[index] = value;
71  }
72 
73  inline void BoatDropPointComponent::EntityIdArrayInterface::insert(std::size_t before, const uint64& value)
74  {
75  getVariable().insert(getVariable().begin() + before, value);
76  }
77 
78  inline void BoatDropPointComponent::EntityIdArrayInterface::remove(std::size_t index)
79  {
80  getVariable().erase(getVariable().begin() + index);
81  }
82 
83 
84 //[-------------------------------------------------------]
85 //[ Namespace ]
86 //[-------------------------------------------------------]
87 } // em5
uint64 getBoatEntityId() const
Definition: BoatDropPointComponent-inl.h:24
Definition: ActionPriority.h:13
size_t getDropMarkerIndex() const
Definition: BoatDropPointComponent-inl.h:44
void setLakeId(uint64 lakeId)
Definition: BoatDropPointComponent-inl.h:39
void setDropMarkerIndex(size_t dropPointIndex)
Definition: BoatDropPointComponent-inl.h:49
uint64_t uint64
Definition: PlatformTypes.h:184
uint64 getTransporterEntityId() const
Definition: BoatDropPointComponent-inl.h:14
uint64 getLakeId() const
Getter and setter.
Definition: BoatDropPointComponent-inl.h:34
void setTransporterEntityId(uint64 transporterEntityId)
Definition: BoatDropPointComponent-inl.h:19
void setBoatEntityId(uint64 boatEntityId)
Definition: BoatDropPointComponent-inl.h:29