Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2017, 9:22:33 PM (8 years ago)
Author:
pascscha
Message:

XML Port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxShip.h

    r11600 r11620  
    3939#include "weapons/WeaponsPrereqs.h"
    4040#include "worldentities/pawns/SpaceShip.h"
     41#include "graphics/ParticleSpawner.h"
     42#include "FlappyOrx.h"
     43
    4144
    4245namespace orxonox
     
    4952            virtual void tick(float dt) override;
    5053
    51            
    5254            // Starts or stops fireing
    5355            virtual void boost(bool bBoost) override;
    5456
    55             //no rotation!
    56             virtual void rotateYaw(const Vector2& value) override{};
    57             virtual void rotatePitch(const Vector2& value) override{};
    5857            //return to main menu if game has ended.
    59             //virtual void rotateRoll(const Vector2& value) override;
     58            virtual void rotateRoll(const Vector2& value) override;
    6059           
    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           
    7478   
    7579            virtual int timeUntilRespawn();
    7680           
    7781            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     82
    7883
    7984        protected:
     
    8388            WeakPtr<FlappyOrx> game;
    8489            Camera* camera;
     90            ParticleSpawner* particlespawner_;
    8591            bool isFlapping;
    8692            bool isDead;
    87             float speed, UpwardThrust, gravity;
     93            float speed, upwardThrust, gravity;
     94            float particleAge, particleLifespan;
    8895            long deathTime;
    8996            struct Velocity
Note: See TracChangeset for help on using the changeset viewer.