Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 1, 2017, 8:40:42 PM (6 years ago)
Author:
remartin
Message:

Gebastel in spawnChildren, hat immer noch Fehler drin.

File:
1 edited

Legend:

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

    r11610 r11615  
    5858
    5959
     60            inline void setCount(float s){this->count = s;}
     61            inline float getCount(){return this->count;}
    6062
    61             virtual void setSize(float f);
    62             virtual float getSize();
     63            inline void setMineralDensity(float d){this->mDensity = d;}
     64            inline float getMineralDensity(){return this->mDensity;}
    6365
     66            inline void setPosition(Vector3 v){this->position = v;}
     67            inline Vector3 getPosition(){returrn this->position;}
     68
     69            inline void setMaxSize(int i){this->maxSize = i;}
     70            inline int getMaxSize(){return this->maxSize;}
     71
     72            inline void setMinSize(int i){this->minSize = i;}
     73            inline int getMinSize(){return this->minSize;}
     74
     75            inline void setRadius(float r){this->radius = r;}
     76            inline int getRadius(){return this->radius;}
     77
     78            inline void setFog(bool f){this->foggy = f;}
     79            inline bool isFoggy(){return this->foggy;}
    6480
    6581        protected:
     
    6783            //float asteroidVersion; // Bodenstrich-Konvention?,
    6884            // Wert zwischen 1 und 6 (Spezialdinger?), die Mesh-Form
    69             float size;
    70             bool generateSmaller;
     85            float count;
     86            float mDensity; // Mineral density, between 0 and 1;
     87
     88            Vector3 position;
    7189            bool initialised;
     90            Context* context;
     91            int maxSize;
     92            int minSize;
    7293
    73             Context* context;
     94            float radius;
     95            bool foggy;
    7496
    7597            virtual void create();
Note: See TracChangeset for help on using the changeset viewer.