BiomGenerator.h 642 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <ReferenceCounter.h>
  3. #include <Either.h>
  4. #include "GenerationTemplate.h"
  5. class Block;
  6. class Noise;
  7. class BiomGenerator : public virtual Framework::ReferenceCounter
  8. {
  9. private:
  10. Framework::RCArray<GenerationTemplate> templates;
  11. protected:
  12. void addTemplateGenerator(GenerationTemplate* gTemplate);
  13. public:
  14. BiomGenerator();
  15. virtual Framework::Either<Block*, int> generateSurfaceBlock(int x, int y, int z) = 0;
  16. virtual Framework::Either<Block*, int> generateBelowSurfaceBlock(int x, int y, int z) = 0;
  17. virtual Noise* zHeightMapNoise(int seed) = 0;
  18. const Framework::RCArray<GenerationTemplate>& getTemplates();
  19. };