Changeset 11667 for code/branches/AsteroidMining_HS17/src/modules/asteroidmining/SpicedAsteroidField.h
- Timestamp:
- Dec 12, 2017, 8:29:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AsteroidMining_HS17/src/modules/asteroidmining/SpicedAsteroidField.h
r11664 r11667 23 23 * Fabian 'x3n' Landau 24 24 * Co-authors: 25 * ...26 25 * 27 26 */ … … 29 28 /** 30 29 31 @file SpicedAsteroidField.h 30 @file 31 @author remartin 32 32 @brief Asteroid field with lots of parameters. Derived from asteroidField.lua 33 33 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 35 38 */ 36 39 … … 91 94 Context* context; 92 95 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; 95 98 96 Vector3 position; 99 Vector3 position; //!< The center 97 100 98 int maxSize; 99 int minSize; 101 int maxSize; //!< Upper bound to asteroid size 102 int minSize; //!< Lower bound to asteroid size 100 103 101 float radius; 102 bool foggy; 104 float radius; //!< Asteroids can appear within a sphere. 105 bool foggy; //!< Whether there's fog 103 106 float fogDensity; 104 105 virtual void create();106 107 107 108 108 … … 110 110 void registerVariables(); 111 111 112 virtual void create(); 113 114 112 115 }; // tolua_export 113 116 } // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.