- Timestamp:
- Dec 3, 2017, 9:22:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxShip.h
r11600 r11620 39 39 #include "weapons/WeaponsPrereqs.h" 40 40 #include "worldentities/pawns/SpaceShip.h" 41 #include "graphics/ParticleSpawner.h" 42 #include "FlappyOrx.h" 43 41 44 42 45 namespace orxonox … … 49 52 virtual void tick(float dt) override; 50 53 51 52 54 // Starts or stops fireing 53 55 virtual void boost(bool bBoost) override; 54 56 55 //no rotation!56 virtual void rotateYaw(const Vector2& value) override{};57 virtual void rotatePitch(const Vector2& value) override{};58 57 //return to main menu if game has ended. 59 //virtual void rotateRoll(const Vector2& value) override;58 virtual void rotateRoll(const Vector2& value) override; 60 59 61 inline void setSpeed( float speed ){ 62 orxout()<< speed<< endl; 63 this->speed = speed; } 64 inline float getSpeed( ) 65 { return this->speed; } 66 inline void setGravity( float gravity ) 67 { this->gravity = gravity; } 68 inline float getGravity() 69 { return this->gravity; } 70 inline void setUpwardThrust( float UpwardThrust ) 71 { this->UpwardThrust = UpwardThrust; } 72 inline float getUpwardThrust() 73 { return this->UpwardThrust; } 60 inline void setSpeedBase(int speedBase){ getGame()->setSpeedBase(speedBase);} 61 inline float getSpeedBase(){ return getGame()->getSpeedBase();} 62 inline void setSpeedIncrease(int speedIncrease){ getGame()->setSpeedIncrease(speedIncrease);} 63 inline float getSpeedIncrease(){ return getGame()->getSpeedIncrease();} 64 65 inline void setTubeDistanceBase(int tubeDistanceBase){ getGame()->setTubeDistanceBase(tubeDistanceBase);} 66 inline int getTubeDistanceBase(){ return getGame()->getTubeDistanceBase();} 67 inline void setTubeDistanceIncrease(int tubeDistanceIncrease){ getGame()->setTubeDistanceIncrease(tubeDistanceIncrease);} 68 inline int getTubeDistanceIncrease(){ return getGame()->getTubeDistanceIncrease();} 69 70 inline void setUpwardthrust( float upwardThrust ){ this->upwardThrust = upwardThrust; } 71 inline float getUpwardthrust(){ return this->upwardThrust; } 72 inline void setGravity( float gravity ){ this->gravity = gravity; } 73 inline float getGravity(){ return this->gravity; } 74 75 inline void setSpeed( float speed ){ orxout() << "speed set: " << speed << endl; this->speed = speed; } 76 inline float getSpeed( ){ return this->speed; } 77 74 78 75 79 virtual int timeUntilRespawn(); 76 80 77 81 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 82 78 83 79 84 protected: … … 83 88 WeakPtr<FlappyOrx> game; 84 89 Camera* camera; 90 ParticleSpawner* particlespawner_; 85 91 bool isFlapping; 86 92 bool isDead; 87 float speed, UpwardThrust, gravity; 93 float speed, upwardThrust, gravity; 94 float particleAge, particleLifespan; 88 95 long deathTime; 89 96 struct Velocity
Note: See TracChangeset
for help on using the changeset viewer.