- Timestamp:
- Apr 21, 2016, 4:47:39 PM (9 years ago)
- Location:
- code/branches/sagerjFS16/src/modules/weapons/weaponmodes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sagerjFS16/src/modules/weapons/weaponmodes/Discharger.cc
r11170 r11174 54 54 this->damage_ = 90.01f; 55 55 this->speed_ = 90.01f; 56 this->charge s_ = 0;56 this->chargeable_ = 0; 57 57 58 58 this->setMunitionName("LaserMunition"); … … 65 65 void Discharger::fire() 66 66 { 67 charges_ += 1; 68 orxout() << "c = " << charges_ << endl; 69 } 70 71 void Discharger::release() 72 { 73 orxout() << "release c = " << charges_ << endl; 67 orxout() << "release" << cTime_ << endl; 74 68 BillboardProjectile* projectile = new BillboardProjectile(this->getContext()); 75 69 -
code/branches/sagerjFS16/src/modules/weapons/weaponmodes/Discharger.h
r11170 r11174 48 48 @ingroup WeaponsWeaponModes 49 49 */ 50 50 51 class _WeaponsExport Discharger : public WeaponMode 51 52 { … … 55 56 56 57 virtual void fire() override; 57 virtual void release() override;58 58 59 59 private: 60 float speed_; // The speed of the fired projectile. 61 unsigned int charges_; // An indicator of how much you charged up. 60 bool chargeable_; // An indicator that this weapon type is chargeable. 61 float speed_; // The speed of the fired projectile. 62 float ctime_; // time the weapon has charged. 62 63 }; 63 64 }
Note: See TracChangeset
for help on using the changeset viewer.