Changeset 11739 for code/branches/Presentation_HS17_merge/src/modules/asteroidmining/SpicedAsteroidField.h
- Timestamp:
- Feb 12, 2018, 12:17:34 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/asteroidmining/SpicedAsteroidField.h
r11736 r11739 60 60 virtual void tick(float dt) override; 61 61 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;} 64 64 65 65 inline void setMineralDensity(float d){this->mDensity = d;} 66 66 inline float getMineralDensity(){return this->mDensity;} 67 67 68 inline void setPosition( Vector3v){this->position = v;}69 inline Vector3getPosition(){return this->position;}68 inline void setPosition(const Vector3& v){this->position = v;} 69 inline const Vector3& getPosition(){return this->position;} 70 70 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;} 73 73 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;} 76 76 77 77 inline void setRadius(float r){this->radius = r;} 78 inline int getRadius(){return this->radius;}78 inline float getRadius(){return this->radius;} 79 79 80 80 inline void setFog(bool f){this->foggy = f;} … … 86 86 protected: 87 87 88 float count; //!< Number of asteroids generated88 int count; //!< Number of asteroids generated 89 89 float mDensity; //!< Mineral density, between 0 and 1; 90 90 91 91 Vector3 position; //!< The center 92 92 93 int maxSize; //!< Upper bound to asteroid size94 int minSize; //!< Lower bound to asteroid size93 float maxSize; //!< Upper bound to asteroid size 94 float minSize; //!< Lower bound to asteroid size 95 95 96 96 float radius; //!< Asteroids can appear within a sphere. 97 97 bool foggy; //!< Whether there's fog 98 float fogDensity; 98 float fogDensity; 99 99 100 100
Note: See TracChangeset
for help on using the changeset viewer.