Changeset 11175 for code/branches/sagerjFS16/src/modules
- Timestamp:
- Apr 28, 2016, 3:09:26 PM (9 years ago)
- Location:
- code/branches/sagerjFS16/src/modules
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sagerjFS16/src/modules/invader/InvaderEnemyShooter.cc
r11083 r11175 71 71 void InvaderEnemyShooter::shoot() 72 72 { 73 ControllableEntity:: fire(0);73 ControllableEntity::push(0); 74 74 } 75 75 -
code/branches/sagerjFS16/src/modules/invader/InvaderShip.cc
r11071 r11175 91 91 // shoot! 92 92 if (isFireing) 93 ControllableEntity:: fire(0);93 ControllableEntity::push(0); 94 94 95 95 // Camera -
code/branches/sagerjFS16/src/modules/jump/JumpFigure.cc
r11071 r11175 398 398 } 399 399 400 void JumpFigure:: fire(unsigned int firemode)401 { 402 403 } 404 405 void JumpFigure:: fired(unsigned int firemode)400 void JumpFigure::push(unsigned int firemode) 401 { 402 403 } 404 405 void JumpFigure::pushed(unsigned int firemode) 406 406 { 407 407 firePressed_ = true; -
code/branches/sagerjFS16/src/modules/jump/JumpFigure.h
r11105 r11175 47 47 virtual void rotatePitch(const Vector2& value) override; 48 48 virtual void rotateRoll(const Vector2& value) override; 49 void fire(unsigned int firemode);50 virtual void fired(unsigned int firemode) override;49 void push(unsigned int firemode); 50 virtual void pushed(unsigned int firemode) override; 51 51 virtual void JumpFromPlatform(JumpPlatform* platform); 52 52 virtual void JumpFromSpring(JumpSpring* spring); -
code/branches/sagerjFS16/src/modules/objects/controllers/TurretController.cc
r11071 r11175 198 198 { 199 199 200 this->getControllableEntity()-> fire(0);200 this->getControllableEntity()->push(0); 201 201 } 202 202 } -
code/branches/sagerjFS16/src/modules/towerdefense/TowerDefenseSelecter.cc
r11071 r11175 146 146 } 147 147 148 void TowerDefenseSelecter:: fire(unsigned int firemode)148 void TowerDefenseSelecter::push(unsigned int firemode) 149 149 { 150 150 } 151 151 152 void TowerDefenseSelecter:: fired(unsigned int firemode)152 void TowerDefenseSelecter::pushed(unsigned int firemode) 153 153 { 154 154 -
code/branches/sagerjFS16/src/modules/towerdefense/TowerDefenseSelecter.h
r11071 r11175 47 47 virtual void rotatePitch(const Vector2& value) override; 48 48 virtual void rotateRoll(const Vector2& value) override; 49 void fire(unsigned int firemode);50 virtual void fired(unsigned int firemode) override;49 void push(unsigned int firemode); 50 virtual void pushed(unsigned int firemode) override; 51 51 virtual void boost(bool bBoost) override; 52 52 virtual void setSelectedPosition(TDCoordinate* newPos); -
code/branches/sagerjFS16/src/modules/weapons/projectiles/Rocket.cc
r11071 r11175 218 218 Destroys the Rocket upon pressing "fire". 219 219 */ 220 void Rocket:: fired(unsigned int firemode)220 void Rocket::pushed(unsigned int firemode) 221 221 { 222 222 this->destroyObject(); -
code/branches/sagerjFS16/src/modules/weapons/projectiles/Rocket.h
r11071 r11175 116 116 virtual void setShooter(Pawn* shooter) override; 117 117 118 virtual void fired(unsigned int firemode) override;118 virtual void pushed(unsigned int firemode) override; 119 119 120 120 /** -
code/branches/sagerjFS16/src/modules/weapons/projectiles/RocketOld.cc
r11071 r11175 218 218 Destroys the RocketOld upon pressing "fire". 219 219 */ 220 void RocketOld:: fired(unsigned int firemode)220 void RocketOld::pushed(unsigned int firemode) 221 221 { 222 222 this->destroyObject(); -
code/branches/sagerjFS16/src/modules/weapons/projectiles/RocketOld.h
r11071 r11175 116 116 virtual void setShooter(Pawn* shooter) override; 117 117 118 virtual void fired(unsigned int firemode) override;118 virtual void pushed(unsigned int firemode) override; 119 119 120 120 private: -
code/branches/sagerjFS16/src/modules/weapons/weaponmodes/Discharger.cc
r11174 r11175 54 54 this->damage_ = 90.01f; 55 55 this->speed_ = 90.01f; 56 this->chargeable_ = 0;56 this->chargeable_ = true; 57 57 58 58 this->setMunitionName("LaserMunition"); … … 65 65 void Discharger::fire() 66 66 { 67 orxout() << "release" << cTime_ << endl;67 // orxout() << "release" << cTime_ << endl; 68 68 BillboardProjectile* projectile = new BillboardProjectile(this->getContext()); 69 69 … … 71 71 projectile->setOrientation(this->getMuzzleOrientation()); 72 72 projectile->setPosition(this->getMuzzlePosition()); 73 projectile->setVelocity(this->getMuzzleDirection() * this->speed_ * charges_);73 projectile->setVelocity(this->getMuzzleDirection() * this->speed_); 74 74 75 75 projectile->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 76 76 projectile->setDamage(this->getDamage() * charges_); 77 projectile->setShieldDamage(this->getShieldDamage() * charges_);78 projectile->setHealthDamage(this->getHealthDamage() * charges_);79 this->charges_ = 0;77 projectile->setShieldDamage(this->getShieldDamage()); 78 projectile->setHealthDamage(this->getHealthDamage()); 79 // this->charges_ = 0; 80 80 } 81 81 } -
code/branches/sagerjFS16/src/modules/weapons/weaponmodes/Discharger.h
r11174 r11175 58 58 59 59 private: 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. 63 }; 60 //bool chargeable_; // An indicator that this weapon type is chargeable. 61 int charges_; 62 float speed_; // The speed of the fired projectile. 63 float ctime_; // time the weapon has charged. 64 }; 64 65 } 65 66
Note: See TracChangeset
for help on using the changeset viewer.