Emergency 20 Dokumentation  4.2.0
TreeComponent-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  mTreeParticlesEnabled(true),
17  mTreeFallDownAnimation(nullptr)
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(TREE_IS_CUT);
30  }
31 
32 
33 //[-------------------------------------------------------]
34 //[ Namespace ]
35 //[-------------------------------------------------------]
36 } // em5
Definition: ActionPriority.h:13
TreeComponent(qsf::Prototype *prototype)
Constructor.
Definition: TreeComponent-inl.h:14
EMERGENCY 5 damage component class.
Definition: DamageComponent.h:49
virtual bool isReadyForCleanup() const override
Check if the tree component is ready for cleanup.
Definition: TreeComponent-inl.h:27
Prototype class.
Definition: Prototype.h:100
bool isSet(ENUM flag) const
Check whether a certain flag is set.
Definition: EnumBitmask.h:118
virtual ~TreeComponent()
Destructor.
Definition: TreeComponent-inl.h:22
virtual bool isReadyForCleanup() const
Definition: DamageComponent-inl.h:102