12345678910111213141516171819202122232425262728 |
- #pragma once
- #include <ReferenceCounter.h>
- #include <Vec3.h>
- #include "GeneratedStructure.h"
- #include "Noise.h"
- class GenerationTemplate : public Framework::ReferenceCounter
- {
- private:
- float propability;
- int minSurfaceDist;
- int maxSurfaceDist;
- Framework::Vec3<int> minPosOffset;
- Framework::Vec3<int> maxSize;
- public:
- GenerationTemplate(float propability, int minSurfaceDist, int maxSurfaceDist, Framework::Vec3<int> minPosOffset, Framework::Vec3<int> maxSize);
- virtual bool canEffect(Framework::Vec3<int> location, Framework::Vec3<int> affectedLocation) const;
- virtual bool isGenerationPossable(Framework::Vec3<int> location, int distToSurface) const;
- virtual GeneratedStructure* generateAt(Framework::Vec3<int> location, Noise* zNoise) = 0;
- float getPropability() const;
- Framework::Vec3<int> getMinAffectedOffset() const;
- Framework::Vec3<int> getMaxAffectedOffset() const;
- };
|