summaryrefslogtreecommitdiff
path: root/terrain.h
diff options
context:
space:
mode:
Diffstat (limited to 'terrain.h')
-rw-r--r--terrain.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/terrain.h b/terrain.h
index 88b2277..3ce4402 100644
--- a/terrain.h
+++ b/terrain.h
@@ -1,9 +1,15 @@
#ifndef TERRAIN_H
#define TERRAIN_H
+#include <set>
+
class Terrain {
+ private:
+ std::set<std::pair<int, int> > chunk_indices;
public:
- static float *generate_heights(int x, int y, int width, int height);
+ float *generate_heights(int x, int y, int width, int height);
+ float *get_chunk(int x, int y, int width, int height);
+ bool has_chunk(int x, int y);
};
#endif