Emergency 20 Dokumentation  4.2.0
SimpleDamageComponent-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  {
17  // Nothing here
18  }
19 
21  {
22  // Nothing here
23  }
24 
26  {
27  return mDamageData.getIntactMesh();
28  }
29 
31  {
33  }
34 
36  {
37  return mDamageData.getDamagedMesh();
38  }
39 
41  {
43  }
44 
46  {
48  }
49 
51  {
53  }
54 
56  {
57  return mDamageData.getSmutTexture();
58  }
59 
61  {
62  mDamageData.setSmutTexture(smutTexture);
63  }
64 
66  {
68  }
69 
70  inline void SimpleDamageComponent::setDamageTexture(const qsf::AssetProxy& damageTexture)
71  {
72  mDamageData.setDamageTexture(damageTexture);
73  }
74 
75  inline SimpleDamageData::EntityIdArrayInterface& SimpleDamageComponent::getDamageLevel1Particles()
76  {
77  return mDamageData.DamagedLevel1Particles;
78  }
79 
80  inline SimpleDamageData::EntityIdArrayInterface& SimpleDamageComponent::getDamageLevel2Particles()
81  {
82  return mDamageData.DamagedLevel2Particles;
83  }
84 
85  inline SimpleDamageData::EntityIdArrayInterface& SimpleDamageComponent::getDestroyedParticles()
86  {
87  return mDamageData.DestroyedParticles;
88  }
89 
90 
91 //[-------------------------------------------------------]
92 //[ Namespace ]
93 //[-------------------------------------------------------]
94 } // em5
void setDamagedMesh(const qsf::AssetProxy &mesh)
Definition: SimpleDamageData-inl.h:49
Definition: ActionPriority.h:13
const qsf::AssetProxy & getDamageTexture() const
Definition: SimpleDamageComponent-inl.h:65
void setIntactMesh(const qsf::AssetProxy &mesh)
Definition: SimpleDamageComponent-inl.h:30
const qsf::AssetProxy & getSmutTexture() const
Definition: SimpleDamageComponent-inl.h:55
const qsf::AssetProxy & getDestroyedMesh() const
Definition: SimpleDamageComponent-inl.h:45
void setDamageTexture(const qsf::AssetProxy &damageTexture)
Definition: SimpleDamageData-inl.h:79
SimpleDamageComponent(qsf::Prototype *prototype)
Constructor.
Definition: SimpleDamageComponent-inl.h:14
virtual ~SimpleDamageComponent()
Destructor.
Definition: SimpleDamageComponent-inl.h:20
const qsf::AssetProxy & getDamagedMesh() const
Definition: SimpleDamageComponent-inl.h:35
void setIntactMesh(const qsf::AssetProxy &mesh)
Definition: SimpleDamageData-inl.h:39
const qsf::AssetProxy & getDamagedMesh() const
Definition: SimpleDamageData-inl.h:44
const qsf::AssetProxy & getDamageTexture() const
Definition: SimpleDamageData-inl.h:74
void setDamageTexture(const qsf::AssetProxy &damageTexture)
Definition: SimpleDamageComponent-inl.h:70
void setSmutTexture(const qsf::AssetProxy &smutTexture)
Definition: SimpleDamageComponent-inl.h:60
const qsf::AssetProxy & getDestroyedMesh() const
Definition: SimpleDamageData-inl.h:54
void setDamagedMesh(const qsf::AssetProxy &mesh)
Definition: SimpleDamageComponent-inl.h:40
const qsf::AssetProxy & getIntactMesh() const
Definition: SimpleDamageData-inl.h:34
Asset proxy class.
Definition: AssetProxy.h:57
SimpleDamageData::EntityIdArrayInterface & getDestroyedParticles()
Definition: SimpleDamageComponent-inl.h:85
EMERGENCY 5 damage component class.
Definition: DamageComponent.h:49
const qsf::AssetProxy & getSmutTexture() const
Definition: SimpleDamageData-inl.h:64
void setDestroyedMesh(const qsf::AssetProxy &mesh)
Definition: SimpleDamageData-inl.h:59
void setDestroyedMesh(const qsf::AssetProxy &mesh)
Definition: SimpleDamageComponent-inl.h:50
SimpleDamageData::EntityIdArrayInterface & getDamageLevel1Particles()
Definition: SimpleDamageComponent-inl.h:75
Prototype class.
Definition: Prototype.h:100
SimpleDamageData::EntityIdArrayInterface & getDamageLevel2Particles()
Definition: SimpleDamageComponent-inl.h:80
SimpleDamageData mDamageData
Simple damage data, we are responsible for deleting.
Definition: SimpleDamageComponent.h:110
void setSmutTexture(const qsf::AssetProxy &smutTexture)
Definition: SimpleDamageData-inl.h:69
const qsf::AssetProxy & getIntactMesh() const
Definition: SimpleDamageComponent-inl.h:25