Emergency 20 Dokumentation  4.2.0
SupportLegsComponent-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  qsf::Component(prototype),
16  mSupportLegsState(SUPPORTLEGSSTATE_HIDDEN),
17  SupportLegsArray(*this, mSupportLegIds)
18  {
19  // Nothing to do in here
20  }
21 
23  {
24  // Nothing to do in here
25  }
26 
28  {
29  return mAnimationExtend;
30  }
31 
33  {
34  mAnimationExtend = skeleton;
35  }
36 
37 
38  //[-------------------------------------------------------]
39  //[ CAMP reflection system ]
40  //[-------------------------------------------------------]
41  inline std::size_t SupportLegsComponent::EntityIdArrayInterface::size() const
42  {
43  return getVariable().size();
44  }
45 
46  inline const uint64& SupportLegsComponent::EntityIdArrayInterface::get(std::size_t index) const
47  {
48  return getVariable()[index];
49  }
50 
51  inline void SupportLegsComponent::EntityIdArrayInterface::set(std::size_t index, const uint64& value)
52  {
53  getVariable()[index] = value;
54  }
55 
56  inline void SupportLegsComponent::EntityIdArrayInterface::insert(std::size_t before, const uint64& value)
57  {
58  getVariable().insert(getVariable().begin() + before, value);
59  }
60 
61  inline void SupportLegsComponent::EntityIdArrayInterface::remove(std::size_t index)
62  {
63  getVariable().erase(getVariable().begin() + index);
64  }
65 
66 
67 //[-------------------------------------------------------]
68 //[ Namespace ]
69 //[-------------------------------------------------------]
70 } // em5
Definition: ActionPriority.h:13
void setAnimationExtend(const qsf::AssetProxy &skeleton)
Definition: SupportLegsComponent-inl.h:32
uint64_t uint64
Definition: PlatformTypes.h:184
SupportLegsComponent(qsf::Prototype *prototype)
Constructor.
Definition: SupportLegsComponent-inl.h:14
Definition: PickupPersonByParamedicAction.h:21
Asset proxy class.
Definition: AssetProxy.h:57
virtual ~SupportLegsComponent()
Destructor.
Definition: SupportLegsComponent-inl.h:22
Prototype class.
Definition: Prototype.h:100
const qsf::AssetProxy & getAnimationExtend() const
Definition: SupportLegsComponent-inl.h:27