Changeset 1502 for code/trunk/src/orxonox/objects/SpaceShip.h
- Timestamp:
- Jun 1, 2008, 3:54:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShip.h
r1407 r1502 41 41 namespace orxonox 42 42 { 43 class _OrxonoxExport SpaceShip : public Model , public MouseHandler43 class _OrxonoxExport SpaceShip : public Model 44 44 { 45 45 public: 46 46 47 47 static SpaceShip *getLocalShip(); 48 48 49 49 SpaceShip(); 50 50 ~SpaceShip(); 51 bool create();51 virtual bool create(); 52 52 void registerAllVariables(); 53 53 void init(); … … 64 64 void setTransDamp(float value); 65 65 void setRotDamp(float value); 66 void getFocus(); 66 67 67 void getFocus();68 static SpaceShip* instance_s;69 static Vector3 getSPosition();70 static Quaternion getSOrientation();71 68 static std::string whereAmI(); 72 69 static void setMaxSpeedTest(float value) 73 70 { SpaceShip::instance_s->setMaxSpeed(value); } 74 71 75 void mouseButtonPressed (MouseButton::Enum id); 76 void mouseButtonReleased(MouseButton::Enum id); 77 void mouseButtonHeld (MouseButton::Enum id) { } 78 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize); 79 void mouseScrolled (int abs, int rel) { } 72 static void movePitch(float value); 73 static void moveYaw(float value); 74 static void moveRoll(float value); 75 static void moveLongitudinal(float value); 76 static void moveLateral(float value); 77 static void fire(); 78 void setMovePitch(float value); 79 void setMoveYaw(float value); 80 void setMoveRoll(float value); 81 void setMoveLongitudinal(float value); 82 void setMoveLateral(float value); 83 void doFire(); 80 84 81 85 float getMaxSpeed(); 86 Vector3 getDir(); 87 Vector3 getOrth(); 88 Camera* getCamera(); 89 90 int getTeamNr() const 91 { return this->teamNr_; } 92 int getHealth() const 93 { return this->health_; } 94 95 bool getMyShip(){return myShip_;} 96 97 protected: 98 void setTeamNr(int teamNr) 99 { this->teamNr_ = teamNr; } 82 100 83 101 private: 84 102 void createCamera(); 103 virtual ColourValue getProjectileColour() const 104 { return ColourValue(1.0, 1.0, 0.5); } 85 105 86 106 Vector3 testvector_; 107 Vector3 initialDir_; 108 Vector3 currentDir_; 109 Vector3 initialOrth_; 110 Vector3 currentOrth_; 87 111 bool bInvertYAxis_; 88 112 bool setMouseEventCallback_; … … 130 154 131 155 float emitterRate_; 132 bool server_; 156 157 protected: 158 bool myShip_; 159 160 int teamNr_; 161 int health_; 162 163 static SpaceShip* instance_s; 133 164 }; 134 165 }
Note: See TracChangeset
for help on using the changeset viewer.