From 7d5c1adf8e581599848b3fec54e0af88eb469046 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 8 May 2011 15:02:30 +0200 Subject: Working dynamic generation of terrain. --- terrain.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'terrain.h') 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 + class Terrain { + private: + std::set > 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 -- cgit v1.2.3