Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 16, 2018, 12:37:37 AM (7 years ago)
Author:
landauf
Message:

[FlappyOrx_HS17] fixed some warnings (MSVC)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrx.h

    r11630 r11755  
    4646{
    4747    struct Circle{
    48         int r;
    49         int x;
    50         int y;
    51         Circle(int new_r, int new_x, int new_y){
     48        float r;
     49        float x;
     50        float y;
     51        Circle(float new_r, float new_x, float new_y){
    5252            r=new_r;
    5353            x=new_x;
     
    7070            virtual void death();
    7171           
    72             void updatePlayerPos(int x);
     72            void updatePlayerPos(float x);
    7373            void createAsteroid(Circle &c);
    74             void asteroidField(int x, int y, float slope);
     74            void asteroidField(float x, float y, float slope);
    7575            void spawnTube();
    7676           
     
    8989            float speedIncrease;
    9090
    91             int tubeDistanceBase;
    92             int tubeDistanceIncrease;
    93             int tubeDistance;
    94             int tubeOffsetX;
     91            float tubeDistanceBase;
     92            float tubeDistanceIncrease;
     93            float tubeDistance;
     94            float tubeOffsetX;
    9595
    9696            int upwardThrust;
    9797            int gravity;
    9898
    99             inline void setSpeedBase(int speedBase){ this-> speedBase =  speedBase;}
     99            inline void setSpeedBase(float speedBase){ this-> speedBase =  speedBase;}
    100100            inline float  getSpeedBase(){ return speedBase;}
    101             inline void setSpeedIncrease(int speedIncrease){ this-> speedIncrease =  speedIncrease;}
     101            inline void setSpeedIncrease(float speedIncrease){ this-> speedIncrease =  speedIncrease;}
    102102            inline float  getSpeedIncrease(){ return speedIncrease;}
    103103
    104             inline void setTubeDistanceBase(int tubeDistanceBase){ this-> tubeDistanceBase =  tubeDistanceBase;}
    105             inline int  getTubeDistanceBase(){ return tubeDistanceBase;}
    106             inline void setTubeDistanceIncrease(int tubeDistanceIncrease){ this-> tubeDistanceIncrease =  tubeDistanceIncrease;}
    107             inline int  getTubeDistanceIncrease(){ return tubeDistanceIncrease;}
     104            inline void setTubeDistanceBase(float tubeDistanceBase){ this-> tubeDistanceBase =  tubeDistanceBase;}
     105            inline float  getTubeDistanceBase(){ return tubeDistanceBase;}
     106            inline void setTubeDistanceIncrease(float tubeDistanceIncrease){ this-> tubeDistanceIncrease =  tubeDistanceIncrease;}
     107            inline float  getTubeDistanceIncrease(){ return tubeDistanceIncrease;}
    108108
    109109           
     
    112112            bool firstGame;
    113113            std::string sDeathMessage;
    114             std::queue<int> tubes;                  //Saves Position of Tubes
     114            std::queue<float> tubes;                  //Saves Position of Tubes
    115115            std::queue<MovableEntity*> asteroids;   //Stores Asteroids which build up the tubes
    116116            float speed = 100;
Note: See TracChangeset for help on using the changeset viewer.