GeneratorTemplate.h 803 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <ReferenceCounter.h>
  3. #include <Vec3.h>
  4. #include "GeneratedStructure.h"
  5. #include "Noise.h"
  6. class GeneratorTemplate : public Framework::ReferenceCounter
  7. {
  8. private:
  9. float propability;
  10. Framework::Vec3<int> minPosOffset;
  11. Framework::Vec3<int> maxSize;
  12. public:
  13. GeneratorTemplate(float propability,
  14. Framework::Vec3<int> minPosOffset,
  15. Framework::Vec3<int> maxSize);
  16. virtual bool canEffect(Framework::Vec3<int> location,
  17. Framework::Vec3<int> affectedLocation) const;
  18. virtual GeneratedStructure* generateAt(
  19. Framework::Vec3<int> location, Noise* zNoise, int dimensionId)
  20. = 0;
  21. float getPropability() const;
  22. Framework::Vec3<int> getMinAffectedOffset() const;
  23. Framework::Vec3<int> getMaxAffectedOffset() const;
  24. };