- Timestamp:
- May 26, 2011, 12:04:42 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/bigships/src/orxonox/worldentities/pawns/SpaceShip.h
r8426 r8588 61 61 virtual void boost(bool bBoost); // Starts or stops boosting. 62 62 63 64 65 66 67 68 63 void addEngine(Engine* engine); 64 bool hasEngine(Engine* engine); 65 Engine* getEngine(unsigned int i); // This one's for XMLPort 66 inline const std::vector<Engine*>& getEngineList() 67 { return this->engineList_; } 68 void removeAllEngines(); 69 69 70 71 72 73 70 void setSpeedFactor(float factor); 71 float getSpeedFactor(); // Gets mean speed factor 72 float getMaxSpeedFront(); // gets largest speed forward 73 float getBoostFactor(); // gets mean boost factor 74 74 75 75 inline void setSteeringDirection(const Vector3& direction) … … 77 77 inline const Vector3& getSteeringDirection() const 78 78 { return this->steering_; } 79 80 81 82 83 84 79 inline void resetEngineTicks() 80 { this->engineTicksNotDone = this->engineList_.size(); } 81 inline void oneEngineTickDone() 82 { this->engineTicksNotDone--; } 83 inline const bool hasEngineTicksRemaining() 84 { return (this->engineTicksNotDone>0); } 85 85 86 86 inline bool getBoost() const … … 109 109 virtual bool isCollisionTypeLegal(WorldEntity::CollisionType type) const; 110 110 111 112 111 //All things booster 112 void changedEnableMotionBlur(); 113 113 void boostCooledDown(void); 114 114 115 115 Shader* boostBlur_; 116 116 float blurStrength_; 117 117 bool bEnableMotionBlur_; 118 118 119 120 119 std::vector<Engine*> engineList_; 120 int engineTicksNotDone; // Used for knowing when to reset temporary variables. 121 121 Timer timer_; 122 122 };
Note: See TracChangeset
for help on using the changeset viewer.