CaveGenerator.h 411 B

1234567891011121314151617181920
  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(int seed);
  15. virtual CaveChunkGenerator* getGeneratorForChunk(int x, int y) = 0;
  16. };