- Timestamp:
- Oct 6, 2015, 9:37:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseFabien/src/modules/weapons/weaponmodes/SplitGun.h
r10606 r10627 73 73 inline float getSpread() const 74 74 { return this->spread_; } 75 inline void setDamageReduction(float damageReduction) 76 { this->damageReduction_ = (damageReduction >= 0.0f ? damageReduction : 1.0f); } 77 inline float getDamageReduction() const 78 { return this->damageReduction_; } 75 79 76 80 private: … … 80 84 float splitTime_; //The time between creation of the projectile and the split of the projectile 81 85 float spread_; //Low spread means that the child projectiles are concentrated in a small area 86 float damageReduction_; //The damage of a child projectile is reduced by this factor 82 87 }; 83 88 }
Note: See TracChangeset
for help on using the changeset viewer.