From e95b3cb3e1a054a9d6bd766d4904e569ac2b2a68 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 3 Jul 2011 15:26:40 +0200 Subject: Added terrain objects. --- terrain_loader.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'terrain_loader.h') diff --git a/terrain_loader.h b/terrain_loader.h index f99fb09..a30ddec 100644 --- a/terrain_loader.h +++ b/terrain_loader.h @@ -1,9 +1,13 @@ #ifndef TERRAIN_LOADER_H #define TERRAIN_LOADER_H +#include "vector.h" + #include #include +#include + namespace fs = boost::filesystem; class TerrainLoader { @@ -16,12 +20,16 @@ class TerrainLoader { TerrainLoader(fs::path root); virtual ~TerrainLoader(); - 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); bool has_chunk(int64_t x, int64_t y); void save_chunk(float *chunk, int64_t x, int64_t y, unsigned int width, unsigned int height); float *load_chunk(int64_t x, int64_t y, unsigned int width, unsigned int height); + // FIXME: Support other object types. + virtual std::list get_objects(int64_t x, int64_t y); + bool has_objects(int64_t x, int64_t y); + void save_objects(std::list& objects, int64_t x, int64_t y); + std::list load_objects(int64_t x, int64_t y); }; #endif -- cgit v1.2.3