- Timestamp:
- Sep 25, 2015, 1:56:51 PM (10 years ago)
- Location:
- code/branches/towerdefenseFabien/src/modules/weapons/weaponmodes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseFabien/src/modules/weapons/weaponmodes/SplitGun.cc
r10592 r10594 21 21 * 22 22 * Author: 23 * Joel Smely23 * Fabien Vultier 24 24 * Co-authors: 25 * simonmie25 * ... 26 26 * 27 27 */ … … 69 69 /** 70 70 @brief 71 XMLPort for the SplitGun. You can define how often the projectiles split, how many childs should be created per split and the time between two splits.71 XMLPort for the SplitGun. You can define how often the projectiles split, how many childs should be created per split, the spread and the time between two splits. 72 72 */ 73 73 void SplitGun::XMLPort(Element& xmlelement, XMLPort::Mode mode) … … 95 95 projectile->setVelocity(this->getMuzzleDirection() * this->speed_); 96 96 97 // Pass important information to the projectile: Number of splits, Number of childs, split time, spread 97 98 projectile->setNumberOfSplits(getNumberOfSplits()); 98 99 projectile->setNumberOfChilds(getNumberOfChilds()); -
code/branches/towerdefenseFabien/src/modules/weapons/weaponmodes/SplitGun.h
r10592 r10594 21 21 * 22 22 * Author: 23 * Joel Smely23 * Fabien Vultier 24 24 * Co-authors: 25 25 * ... … … 45 45 A slow ball of lightning. 46 46 @author 47 Joel Smely47 Fabien Vultier 48 48 @ingroup WeaponsWeaponModes 49 49 */ … … 75 75 76 76 private: 77 float speed_; // !<The speed of the fired projectile.78 int numberOfSplits_; 79 int numberOfChilds_; 80 float splitTime_; 81 float spread_; 77 float speed_; //The speed of the fired projectile. 78 int numberOfSplits_; //The number of times the projectile will split into child projectiles 79 int numberOfChilds_; //The number of child projectiles that are created if the projectile splits 80 float splitTime_; //The time between creation of the projectile and the split of the projectile 81 float spread_; //Low spread means that the child projectiles are concentrated in a small area 82 82 }; 83 83 }
Note: See TracChangeset
for help on using the changeset viewer.