Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

[AsteroidMining_HS17] fixed a bunch of compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/asteroidmining/SpicedAsteroidField.h

    r11736 r11739  
    6060            virtual void tick(float dt) override;
    6161
    62             inline void setCount(float s){this->count = s;}
    63             inline float getCount(){return this->count;}
     62            inline void setCount(int s){this->count = s;}
     63            inline int getCount(){return this->count;}
    6464
    6565            inline void setMineralDensity(float d){this->mDensity = d;}
    6666            inline float getMineralDensity(){return this->mDensity;}
    6767
    68             inline void setPosition(Vector3 v){this->position = v;}
    69             inline Vector3 getPosition(){return this->position;}
     68            inline void setPosition(const Vector3& v){this->position = v;}
     69            inline const Vector3& getPosition(){return this->position;}
    7070
    71             inline void setMaxSize(int i){this->maxSize = i;}
    72             inline int getMaxSize(){return this->maxSize;}
     71            inline void setMaxSize(float i){this->maxSize = i;}
     72            inline float getMaxSize(){return this->maxSize;}
    7373
    74             inline void setMinSize(int i){this->minSize = i;}
    75             inline int getMinSize(){return this->minSize;}
     74            inline void setMinSize(float i){this->minSize = i;}
     75            inline float getMinSize(){return this->minSize;}
    7676
    7777            inline void setRadius(float r){this->radius = r;}
    78             inline int getRadius(){return this->radius;}
     78            inline float getRadius(){return this->radius;}
    7979
    8080            inline void setFog(bool f){this->foggy = f;}
     
    8686        protected:
    8787
    88             float count; //!< Number of asteroids generated
     88            int count; //!< Number of asteroids generated
    8989            float mDensity; //!< Mineral density, between 0 and 1;
    9090
    9191            Vector3 position; //!< The center
    9292           
    93             int maxSize; //!< Upper bound to asteroid size
    94             int minSize; //!< Lower bound to asteroid size
     93            float maxSize; //!< Upper bound to asteroid size
     94            float minSize; //!< Lower bound to asteroid size
    9595
    9696            float radius; //!< Asteroids can appear within a sphere.
    9797            bool foggy; //!< Whether there's fog
    98             float fogDensity; 
     98            float fogDensity;
    9999
    100100
Note: See TracChangeset for help on using the changeset viewer.