TreeTemplate.h 521 B

123456789101112131415161718
  1. #pragma once
  2. #include "GenerationTemplate.h"
  3. class TreeTemplate : public GenerationTemplate
  4. {
  5. private:
  6. const BlockType* zWoodType;
  7. const BlockType* zLeaveType;
  8. int minHeight;
  9. int maxHeight;
  10. public:
  11. TreeTemplate(float propability, const BlockType* zWoodType, const BlockType* zLeaveType, int minHeight, int maxHeight);
  12. virtual GeneratedStructure* generateAt(Framework::Vec3<int> location, Noise* zNoise, int dimensionId) override;
  13. const BlockType* getWoodType() const;
  14. const BlockType* getLeavesType() const;
  15. };