Changeset 8579 for code/branches/presentation/src/orxonox/weaponsystem
- Timestamp:
- May 25, 2011, 9:28:29 PM (14 years ago)
- Location:
- code/branches/presentation/src/orxonox/weaponsystem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/weaponsystem/WeaponMode.cc
r8578 r8579 66 66 67 67 this->damage_ = 0; 68 this->healthdamage_ = 0;69 this->shielddamage_ = 0;70 68 71 69 this->muzzleOffset_ = Vector3::ZERO; … … 108 106 109 107 XMLPortParam(WeaponMode, "damage", setDamage, getDamage, xmlelement, mode); 110 XMLPortParam(WeaponMode, "healthdamage", setHealthDamage, getHealthDamage, xmlelement, mode);111 XMLPortParam(WeaponMode, "shielddamage", setShieldDamage, getShieldDamage, xmlelement, mode);112 108 XMLPortParam(WeaponMode, "muzzleoffset", setMuzzleOffset, getMuzzleOffset, xmlelement, mode); 113 109 } -
code/branches/presentation/src/orxonox/weaponsystem/WeaponMode.h
r8578 r8579 104 104 // Fire 105 105 inline void setDamage(float damage) 106 { this->damage_ = damage; }106 { this->damage_ = damage; } 107 107 inline float getDamage() const 108 108 { return this->damage_; } 109 inline void setHealthDamage(float healthdamage)110 { this->healthdamage_ = healthdamage; }111 inline float getHealthDamage() const112 { return this->healthdamage_; }113 114 inline void setShieldDamage(float shielddamage)115 { this->shielddamage_ = shielddamage;}116 inline float getShieldDamage() const117 { return this->shielddamage_; }118 109 119 110 inline void setMuzzleOffset(const Vector3& offset) … … 155 146 156 147 float damage_; 157 float healthdamage_;158 float shielddamage_;159 148 Vector3 muzzleOffset_; 160 149
Note: See TracChangeset
for help on using the changeset viewer.