summaryrefslogtreecommitdiff
path: root/terrain_generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'terrain_generator.h')
-rw-r--r--terrain_generator.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/terrain_generator.h b/terrain_generator.h
index e301e7b..717419d 100644
--- a/terrain_generator.h
+++ b/terrain_generator.h
@@ -2,17 +2,24 @@
#define TERRAIN_GENERATOR_H
#include "terrain_loader.h"
+#include "vector.h"
+
+#include <boost/shared_ptr.hpp>
class TerrainGenerator : public TerrainLoader {
private:
int seed;
public:
+ typedef boost::shared_ptr<TerrainGenerator> p;
+
TerrainGenerator(int seed, fs::path root);
virtual ~TerrainGenerator() {};
float *generate_heights(int64_t x, int64_t y, unsigned int width, unsigned int height);
virtual float *get_chunk(int64_t x, int64_t y, unsigned int width, unsigned int height);
+ std::list<Vector3> generate_objects(int64_t x, int64_t y, unsigned int width, unsigned int height);
+ virtual std::list<Vector3> get_objects(int64_t x, int64_t y, unsigned int width, unsigned int height);
};
#endif