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/SpicedAsteroidBelt.h

    r11736 r11739  
    7272            inline float getMineralDensity(){return this->mDensity;}
    7373
    74             inline void setPosition(Vector3 v){this->position = v;}
    75             inline Vector3 getPosition(){return this->position;}
     74            inline void setPosition(const Vector3& v){this->position = v;}
     75            inline const Vector3& getPosition(){return this->position;}
    7676
    7777            inline void setSegments(int s){this->segments = s;}
    7878            inline int getSegments(){return this->segments;}
    7979
    80             inline void setMaxSize(int i){this->maxSize = i;}
    81             inline int getMaxSize(){return this->maxSize;}
     80            inline void setMaxSize(float i){this->maxSize = i;}
     81            inline float getMaxSize(){return this->maxSize;}
    8282
    83             inline void setMinSize(int i){this->minSize = i;}
    84             inline int getMinSize(){return this->minSize;}
     83            inline void setMinSize(float i){this->minSize = i;}
     84            inline float getMinSize(){return this->minSize;}
    8585
    8686            inline void setRadius0(float r0){this->radius0 = r0;}
    87             inline int getRadius0(){return this->radius0;}
     87            inline float getRadius0(){return this->radius0;}
    8888
    8989            inline void setRadius1(float r1){this->radius1 = r1;}
    90             inline int getRadius1(){return this->radius1;}           
     90            inline float getRadius1(){return this->radius1;}
    9191
    9292            inline void setFog(bool f){this->foggy = f;}
     
    111111            int segments; //!< Number of asteroidFields that get generated.
    112112           
    113             int maxSize; //!< Most obese asteroid possible
    114             int minSize; //!< Most meagre asteroid possible
     113            float maxSize; //!< Most obese asteroid possible
     114            float minSize; //!< Most meagre asteroid possible
    115115
    116116            float radius0; //!< Inner radius
Note: See TracChangeset for help on using the changeset viewer.