- Timestamp:
- May 26, 2011, 12:58:09 AM (13 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation
- Property svn:mergeinfo changed
/code/branches/bigships (added) merged: 8426,8503-8504,8588
- Property svn:mergeinfo changed
-
code/branches/presentation/src/orxonox/worldentities/pawns/SpaceShip.h
r8582 r8589 61 61 virtual void boost(bool bBoost); // Starts or stops boosting. 62 62 63 void setEngine(Engine* engine); 64 inline Engine* getEngine() const 65 { return this->engine_; } 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 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 66 74 67 75 inline void setSteeringDirection(const Vector3& direction) … … 69 77 inline const Vector3& getSteeringDirection() const 70 78 { return this->steering_; } 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); } 71 85 72 86 inline bool getBoost() const 73 87 { return this->bBoost_; } 74 75 inline void setEngineTemplate(const std::string& temp)76 { this->enginetemplate_ = temp; this->loadEngineTemplate(); }77 inline const std::string& getEngineTemplate() const78 { return this->enginetemplate_; }79 88 80 89 protected: … … 102 111 void registerVariables(); 103 112 virtual bool isCollisionTypeLegal(WorldEntity::CollisionType type) const; 104 105 void loadEngineTemplate();106 113 114 //All things booster 115 void changedEnableMotionBlur(); 107 116 void boostCooledDown(void); 108 117 … … 111 120 void shakeCamera(float dt); 112 121 113 std::string enginetemplate_; 114 Engine* engine_; 122 Shader* boostBlur_; 123 float blurStrength_; 124 bool bEnableMotionBlur_; 125 126 std::vector<Engine*> engineList_; 127 int engineTicksNotDone; // Used for knowing when to reset temporary variables. 115 128 Timer timer_; 116 129 Vector3 cameraOriginalPosition_;
Note: See TracChangeset
for help on using the changeset viewer.