2013-11-15 22:26:44 +00:00
|
|
|
#include "CloudsDefinition.h"
|
|
|
|
|
|
|
|
#include "CloudLayerDefinition.h"
|
|
|
|
|
|
|
|
static BaseDefinition* _layerConstructor(Layers* parent)
|
|
|
|
{
|
|
|
|
return new CloudLayerDefinition(parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
CloudsDefinition::CloudsDefinition(BaseDefinition* parent):
|
|
|
|
Layers(parent, _layerConstructor)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CloudsDefinition::applyPreset(CloudsPreset preset)
|
|
|
|
{
|
|
|
|
clear();
|
|
|
|
|
|
|
|
if (preset == CLOUDS_PRESET_PARTLY_CLOUDY)
|
|
|
|
{
|
|
|
|
CloudLayerDefinition* layer = new CloudLayerDefinition(this);
|
|
|
|
layer->applyPreset(CloudLayerDefinition::CLOUDS_LAYER_PRESET_CIRRUS);
|
2013-11-17 21:47:27 +00:00
|
|
|
layer->setName("Cirrus");
|
2013-11-15 22:26:44 +00:00
|
|
|
addLayer(layer);
|
|
|
|
}
|
|
|
|
}
|