Changeset 2254 for code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/SpaceShip.h
- Timestamp:
- Nov 24, 2008, 1:50:47 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/SpaceShip.h
r2087 r2254 56 56 57 57 virtual void fire(); 58 virtual void boost(); 58 59 59 void setMaxSpeed(float value)60 { this->maxSpeed_ = value; }61 void setMaxSecondarySpeed(float value)62 { this->maxSecondarySpeed_ = value; }63 60 void setMaxRotation(const Degree& value) 64 61 { this->maxRotation_ = value; } 65 void setTransAcc(float value)66 { this->translationAcceleration_ = value; }67 62 void setRotAcc(const Degree& value) 68 63 { this->rotationAcceleration_ = value; } … … 70 65 { this->translationDamping_ = value; } 71 66 72 inline float getMaxSpeed() const73 { return this->maxSpeed_; }74 inline float getMaxSecondarySpeed() const75 { return this->maxSecondarySpeed_; }76 67 inline float getMaxRotation() const 77 68 { return this->maxRotation_.valueDegrees(); } 78 inline float getTransAcc() const79 { return this->translationAcceleration_; }80 69 inline float getRotAcc() const 81 70 { return this->rotationAcceleration_.valueDegrees(); } … … 83 72 { return this->translationDamping_; } 84 73 74 inline void setSteeringDirection(const Vector3& direction) 75 { this->steering_ = direction; } 76 inline const Vector3& getSteeringDirection() const 77 { return this->steering_; } 78 79 inline void setBoost(bool bBoost) 80 { this->bBoost_ = bBoost; } 81 inline bool getBoost() const 82 { return this->bBoost_; } 83 84 inline void setEngineTemplate(const std::string& temp) 85 { this->enginetemplate_ = temp; this->loadEngineTemplate(); } 86 inline const std::string& getEngineTemplate() const 87 { return this->enginetemplate_; } 88 85 89 protected: 86 90 bool bInvertYAxis_; 87 91 88 float maxSpeed_; 89 float maxSecondarySpeed_; 90 float translationAcceleration_; 92 bool bBoost_; 93 Vector3 steering_; 91 94 float translationDamping_; 92 95 … … 98 101 Degree yawRotation_; 99 102 Degree rollRotation_; 103 104 private: 105 void loadEngineTemplate(); 106 107 std::string enginetemplate_; 108 Engine* engine_; 100 109 }; 101 110 }
Note: See TracChangeset
for help on using the changeset viewer.