- Timestamp:
- May 25, 2011, 9:28:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/worldentities/pawns/SpaceShip.h
r8578 r8579 59 59 60 60 virtual void fire(); 61 virtual void boost( bool bBoost); // Starts or stops boosting.61 virtual void boost(); 62 62 63 63 void setEngine(Engine* engine); … … 70 70 { return this->steering_; } 71 71 72 void setBoost(bool bBoost); 72 73 inline bool getBoost() const 73 74 { return this->bBoost_; } … … 78 79 { return this->enginetemplate_; } 79 80 81 inline void setPermanentBoost(bool bPermanent) 82 { this->bPermanentBoost_ = bPermanent; } 83 inline bool getPermanentBoost() const 84 { return this->bPermanentBoost_; } 85 80 86 protected: 81 87 virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const; … … 84 90 bool bBoost_; 85 91 bool bBoostCooldown_; 92 bool bPermanentBoost_; 86 93 float boostPower_; 87 94 float initialBoostPower_; … … 96 103 btVector3 localAngularAcceleration_; 97 104 98 float shakeFrequency_;99 float shakeAmplitude_;100 101 105 private: 102 106 void registerVariables(); … … 106 110 107 111 void boostCooledDown(void); 108 109 void resetCamera();110 void shakeCamera(float dt);111 112 112 113 std::string enginetemplate_; 113 114 Engine* engine_; 114 115 Timer timer_; 115 Vector3 cameraOriginalPosition_;116 Quaternion cameraOriginalOrientation_;117 118 float shakeDt_;119 116 }; 120 117 }
Note: See TracChangeset
for help on using the changeset viewer.