TreeTemplate.h 495 B

123456789101112131415161718
  1. #pragma once
  2. #include "GenerationTemplate.h"
  3. class TreeTemplate : public GenerationTemplate
  4. {
  5. private:
  6. int woodBlockTypeId;
  7. int leaveBlockType;
  8. int minHeight;
  9. int maxHeight;
  10. public:
  11. TreeTemplate(float propability, int woodBlockTypeId, int leaveBlockType, 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. };