Changeset 8706 for code/trunk/src/orxonox/weaponsystem
- Timestamp:
- Jun 14, 2011, 8:53:28 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/weaponsystem/Munition.cc
r7896 r8706 253 253 bool Munition::canAddMunition(unsigned int amount) const 254 254 { 255 // TODO: 'amount' is not used 256 255 257 if (!this->bAllowMunitionRefilling_) 256 258 return false; … … 334 336 bool Munition::canAddMagazines(unsigned int amount) const 335 337 { 338 // TODO: 'amount' is not used 339 336 340 if (this->bStackMunition_) 337 341 // If we stack munition, we can always add new magazines because they contribute directly to the munition -
code/trunk/src/orxonox/weaponsystem/WeaponMode.cc
r7847 r8706 66 66 67 67 this->damage_ = 0; 68 this->healthdamage_ = 0; 69 this->shielddamage_ = 0; 68 70 69 71 this->muzzleOffset_ = Vector3::ZERO; … … 106 108 107 109 XMLPortParam(WeaponMode, "damage", setDamage, getDamage, xmlelement, mode); 110 XMLPortParam(WeaponMode, "healthdamage", setHealthDamage, getHealthDamage, xmlelement, mode); 111 XMLPortParam(WeaponMode, "shielddamage", setShieldDamage, getShieldDamage, xmlelement, mode); 108 112 XMLPortParam(WeaponMode, "muzzleoffset", setMuzzleOffset, getMuzzleOffset, xmlelement, mode); 109 113 } -
code/trunk/src/orxonox/weaponsystem/WeaponMode.h
r7163 r8706 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() const 112 { return this->healthdamage_; } 113 114 inline void setShieldDamage(float shielddamage) 115 { this->shielddamage_ = shielddamage;} 116 inline float getShieldDamage() const 117 { return this->shielddamage_; } 109 118 110 119 inline void setMuzzleOffset(const Vector3& offset) … … 146 155 147 156 float damage_; 157 float healthdamage_; 158 float shielddamage_; 148 159 Vector3 muzzleOffset_; 149 160 -
code/trunk/src/orxonox/weaponsystem/WeaponSlot.cc
r5929 r8706 46 46 this->weapon_ = 0; 47 47 48 this->setSyncMode( 0x0);48 this->setSyncMode(ObjectDirection::None); 49 49 } 50 50
Note: See TracChangeset
for help on using the changeset viewer.