#include <GDynamicGeneratorCategory.h>
Inheritance diagram for GBE::GDynamicGeneratorCategory:


Public Member Functions | |
| GDynamicGeneratorCategory (double range, double radius_min, double radius_max, bool form_overlapping_allowed) | |
| virtual | ~GDynamicGeneratorCategory () |
| double | getRange () const |
| double | getRadiusMax () const |
| double | getRadiusMin () const |
| bool | formOverlapAllowed () const |
| virtual GCS::GForm * | createForm (const GCS::GEnergy &energy, const GCS::GVector3 &position, Util::PseudoRNG &rng) const=0 |
| virtual QPtrList< GCS::GAgent > | createAgents (const GCS::GEnergy &energy, Util::PseudoRNG &rng) const=0 |
Protected Attributes | |
| double | Range |
| double | RadiusMin |
| double | RadiusMax |
| bool | FormOverlapAllowed |
The element itself is not created in the category class but in the GDynamicGeneratorAgent class. Vital parts are provided by the category: the form and agents. The energy is provided by the parent element.
|
||||||||||||||||||||
|
Constructor. Sets values for this element category. |
|
|
Virtual destructor. |
|
||||||||||||
|
This actually creates a form attribute for a new element of this category. Must be implemented by specialisations. Implemented in GBE::GPlanetCategory, and GBE::GSolarsystemCategory. |
|
||||||||||||||||
|
This actually creates a form attribute for a new element of this category. Must be implemented by specialisations. Implemented in GBE::GPlanetCategory, and GBE::GSolarsystemCategory. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Determines, whether the element form may overlap with other elements. If forms may overlap, the generator agent will create such an element although it will overlap with another element. |
|
|
Holds the maximum radius an element of this category can occupy. |
|
|
Holds the minimum radius an element of this category will occupy. |
|
|
When the correct category is chosen for element creation, this range attribute is used to determine the correct category. Range must be between 0 and 1, all Ranges of used categories summed up should result in a number less than 1 because all categories above 1 will never be chosen (as the generated random number is always between 0 and 1). |
1.3.6