Michaël Lemaire
c5950f810f
Conflicts: src/definition/Scenery.cpp src/interface/commandline/tests.cpp
36 lines
873 B
C++
36 lines
873 B
C++
#ifndef VEGETATIONDEFINITION_H
|
|
#define VEGETATIONDEFINITION_H
|
|
|
|
#include "definition_global.h"
|
|
|
|
#include "Layers.h"
|
|
|
|
namespace paysages {
|
|
namespace definition {
|
|
|
|
/**
|
|
* Definition of all vegetation layers in the scenery.
|
|
*/
|
|
class DEFINITIONSHARED_EXPORT VegetationDefinition : public Layers {
|
|
public:
|
|
VegetationDefinition(DefinitionNode *parent);
|
|
|
|
/**
|
|
* Get a vegetation layer by its position.
|
|
*/
|
|
inline VegetationLayerDefinition *getVegetationLayer(int position) const {
|
|
return (VegetationLayerDefinition *)getLayer(position);
|
|
}
|
|
|
|
/**
|
|
* Get the max height of all layers assembled.
|
|
*/
|
|
double getMaxHeight() const;
|
|
|
|
typedef enum { VEGETATION_PRESET_TEMPERATE } VegetationPreset;
|
|
void applyPreset(VegetationPreset preset, RandomGenerator &random = RandomGeneratorDefault);
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif // VEGETATIONDEFINITION_H
|