CaveGenerator.h 424 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <ReferenceCounter.h>
  3. class CaveChunkGenerator : public virtual Framework::ReferenceCounter
  4. {
  5. public:
  6. CaveChunkGenerator();
  7. virtual bool isInCave(int x, int y, int z) = 0;
  8. };
  9. class CaveGenerator : public virtual Framework::ReferenceCounter
  10. {
  11. protected:
  12. int seed;
  13. public:
  14. CaveGenerator();
  15. virtual void initialize(int seed);
  16. virtual CaveChunkGenerator* getGeneratorForChunk(int x, int y) = 0;
  17. };