Emergency 20 Dokumentation  4.2.0
HedgeComponent-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  DamageComponent(prototype),
16  mDestroyedGroundDecalMesh(),
17  mGroundDecalEntityId(qsf::getUninitialized<uint64>())
18  {
19  // Nothing to do in here
20  }
21 
23  {
24  // Nothing to do in here
25  }
26 
28  {
29  return DamageComponent::isReadyForCleanup() || mInternalFlags.isSet(HEDGE_IS_CUT);
30  }
31 
33  {
34  return mDestroyedGroundDecalMesh;
35  }
36 
37  inline void HedgeComponent::setDestroyedGroundDecalMesh(const qsf::AssetProxy& destroyedGroundDecalMesh)
38  {
39  mDestroyedGroundDecalMesh = destroyedGroundDecalMesh;
40  }
41 
42 
43 //[-------------------------------------------------------]
44 //[ Namespace ]
45 //[-------------------------------------------------------]
46 } // em5
Definition: ActionPriority.h:13
virtual bool isReadyForCleanup() const override
Check if the tree component is ready for cleanup.
Definition: HedgeComponent-inl.h:27
virtual ~HedgeComponent()
Destructor.
Definition: HedgeComponent-inl.h:22
const qsf::AssetProxy & getDestroyedGroundDecalMesh() const
Definition: HedgeComponent-inl.h:32
uint64_t uint64
Definition: PlatformTypes.h:184
void setDestroyedGroundDecalMesh(const qsf::AssetProxy &destroyedGroundDecalMesh)
Definition: HedgeComponent-inl.h:37
Definition: PickupPersonByParamedicAction.h:21
Asset proxy class.
Definition: AssetProxy.h:57
EMERGENCY 5 damage component class.
Definition: DamageComponent.h:49
T getUninitialized()
Definition: GetUninitialized.h:38
HedgeComponent(qsf::Prototype *prototype)
Constructor.
Definition: HedgeComponent-inl.h:14
Prototype class.
Definition: Prototype.h:100
bool isSet(ENUM flag) const
Check whether a certain flag is set.
Definition: EnumBitmask.h:118
virtual bool isReadyForCleanup() const
Definition: DamageComponent-inl.h:102