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