Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2017, 8:29:52 PM (8 years ago)
Author:
remartin
Message:

Added tilting for the spicedAsteroidBelt. Finished commenting, polish up. Done.

File:
1 edited

Legend:

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

    r11664 r11667  
    2323 *      Fabian 'x3n' Landau
    2424 *   Co-authors:
    25  *      ...
    2625 *
    2726 */
     
    2928/**
    3029
    31     @file SpicedAsteroidField.h
     30    @file
     31    @author remartin
    3232    @brief Asteroid field with lots of parameters. Derived from asteroidField.lua
    3333
    34 
     34    Generates a bunch of asteroids that may contain some stuff.
     35    It is required to wait until all XML-arguments are set. That's why the actual
     36    generation happens when tick() gets called for the first time.
     37   
    3538*/
    3639
     
    9194            Context* context;
    9295
    93             float count;
    94             float mDensity; // Mineral density, between 0 and 1;
     96            float count; //!< Number of asteroids generated
     97            float mDensity; //!< Mineral density, between 0 and 1;
    9598
    96             Vector3 position;
     99            Vector3 position; //!< The center
    97100           
    98             int maxSize;
    99             int minSize;
     101            int maxSize; //!< Upper bound to asteroid size
     102            int minSize; //!< Lower bound to asteroid size
    100103
    101             float radius;
    102             bool foggy;
     104            float radius; //!< Asteroids can appear within a sphere.
     105            bool foggy; //!< Whether there's fog
    103106            float fogDensity;
    104 
    105             virtual void create();
    106 
    107107
    108108
     
    110110            void registerVariables();
    111111
     112            virtual void create();
     113
     114
    112115    }; // tolua_export
    113116} // tolua_export
Note: See TracChangeset for help on using the changeset viewer.