diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-07-03 15:26:40 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-07-03 15:26:40 +0200 |
commit | e95b3cb3e1a054a9d6bd766d4904e569ac2b2a68 (patch) | |
tree | 2c2c0dea65fa57232c5d9377d4e53bf7001fbe06 /terrain_loader.h | |
parent | 6e746716d6a5c72fbd42539c6d5d92da8830cb9e (diff) |
Diffstat (limited to 'terrain_loader.h')
-rw-r--r-- | terrain_loader.h | 10 |
1 files changed, 9 insertions, 1 deletions
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 <boost/filesystem.hpp> #include <boost/shared_ptr.hpp> +#include <list> + 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<Vector3> get_objects(int64_t x, int64_t y); + bool has_objects(int64_t x, int64_t y); + void save_objects(std::list<Vector3>& objects, int64_t x, int64_t y); + std::list<Vector3> load_objects(int64_t x, int64_t y); }; #endif |