Changeset 1629 for code/branches/input/src/orxonox/objects/SpaceShip.h
- Timestamp:
- Jun 27, 2008, 8:07:29 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/orxonox/objects/SpaceShip.h
r1535 r1629 36 36 #include "Camera.h" 37 37 #include "Model.h" 38 #include "RadarViewable.h" 38 39 #include "tools/BillboardSet.h" 39 40 40 41 namespace orxonox 41 42 { 42 class _OrxonoxExport SpaceShip : public Model 43 class _OrxonoxExport SpaceShip : public Model, public RadarViewable 43 44 { 44 45 public: 45 46 47 46 static SpaceShip *getLocalShip(); 48 47 … … 55 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 56 55 virtual void tick(float dt); 56 virtual void changedVisibility(); 57 virtual void changedActivity(); 57 58 58 59 void setCamera(const std::string& camera = ""); … … 65 66 void setRotDamp(float value); 66 67 void getFocus(); 68 69 inline float getMaxSpeed() const 70 { return this->maxSpeed_; } 71 inline float getMaxSideAndBackSpeed() const 72 { return this->maxSideAndBackSpeed_; } 73 inline float getMaxRotation() const 74 { return this->maxRotation_; } 75 inline float getTransAcc() const 76 { return this->translationAcceleration_; } 77 inline float getRotAcc() const 78 { return this->rotationAcceleration_; } 79 inline float getTransDamp() const 80 { return this->translationDamping_; } 81 inline float getRotDamp() const 82 { return this->rotationDamping_; } 67 83 68 84 static std::string whereAmI(); … … 83 99 void doFire(); 84 100 85 float getMaxSpeed(); 86 Vector3 getDir(); 87 Vector3 getOrth(); 101 inline const Vector3& getDir() const 102 { return this->currentDir_; } 103 inline const Vector3& getInitialDir() const 104 { return this->initialDir_; } 105 inline const Vector3& getOrth() const 106 { return this->currentOrth_; } 107 inline const Vector3& getInitialOrth() const 108 { return this->initialOrth_; } 109 88 110 Camera* getCamera(); 89 111 90 112 int getTeamNr() const 91 113 { return this->teamNr_; } 92 int getHealth() const114 float getHealth() const 93 115 { return this->health_; } 94 116 … … 110 132 Vector3 currentOrth_; 111 133 bool bInvertYAxis_; 112 bool setMouseEventCallback_;113 134 bool bLMousePressed_; 114 135 bool bRMousePressed_; … … 118 139 std::string camName_; 119 140 141 ParticleInterface* tt1_; 142 ParticleInterface* tt2_; 143 BillboardSet leftThrusterFlare_; 144 BillboardSet rightThrusterFlare_; 120 145 121 ParticleInterface* tt_;146 Backlight* backlight_; 122 147 123 148 BillboardSet redBillboard_; … … 126 151 Ogre::SceneNode* greenNode_; 127 152 float blinkTime_; 153 154 ParticleSpawner* smoke_; 155 ParticleSpawner* fire_; 128 156 129 157 BillboardSet crosshairNear_; … … 153 181 float mouseY_; 154 182 155 float emitterRate_;156 157 183 protected: 158 184 bool myShip_; 159 185 160 186 int teamNr_; 161 int health_;187 float health_; 162 188 163 189 static SpaceShip* instance_s;
Note: See TracChangeset
for help on using the changeset viewer.