Changeset 8577 for code/branches/gameimmersion/src/orxonox/weaponsystem
- Timestamp:
- May 25, 2011, 9:07:17 PM (14 years ago)
- Location:
- code/branches/gameimmersion/src/orxonox/weaponsystem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gameimmersion/src/orxonox/weaponsystem/WeaponMode.cc
r8386 r8577 66 66 67 67 this->damage_ = 0; 68 ///////////////////me69 68 this->healthdamage_ = 0; 70 69 this->shielddamage_ = 0; 71 ///////////////////end me 70 72 71 this->muzzleOffset_ = Vector3::ZERO; 73 72 this->muzzlePosition_ = Vector3::ZERO; … … 109 108 110 109 XMLPortParam(WeaponMode, "damage", setDamage, getDamage, xmlelement, mode); 111 //////////me112 110 XMLPortParam(WeaponMode, "healthdamage", setHealthDamage, getHealthDamage, xmlelement, mode); 113 111 XMLPortParam(WeaponMode, "shielddamage", setShieldDamage, getShieldDamage, xmlelement, mode); 114 /////////end me115 112 XMLPortParam(WeaponMode, "muzzleoffset", setMuzzleOffset, getMuzzleOffset, xmlelement, mode); 116 113 } -
code/branches/gameimmersion/src/orxonox/weaponsystem/WeaponMode.h
r8533 r8577 107 107 inline float getDamage() const 108 108 { return this->damage_; } 109 ////////////////////me, copied to projectile.cc110 111 109 inline void setHealthDamage(float healthdamage) 112 110 { this->healthdamage_ = healthdamage; } … … 119 117 { return this->shielddamage_; } 120 118 121 ///////////////////end me122 119 inline void setMuzzleOffset(const Vector3& offset) 123 120 { this->muzzleOffset_ = offset; }
Note: See TracChangeset
for help on using the changeset viewer.