aboutsummaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-01-16 19:32:14 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-01-16 19:32:14 +0200
commit7068bc90af1f452359a1fcfe20fa01fc88f3d70a (patch)
tree43ecf753c1e178cfc29ce4f736d77897a340ed44 /src/map.h
parent69e7cd9b5b36783ec83a663789a95a3c512809c4 (diff)
downloadminetest-7068bc90af1f452359a1fcfe20fa01fc88f3d70a.tar.gz
minetest-7068bc90af1f452359a1fcfe20fa01fc88f3d70a.tar.bz2
minetest-7068bc90af1f452359a1fcfe20fa01fc88f3d70a.zip
Initial commit of mapgen v.2. Lacks configuration and saving to disk.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index ff3daf047..3385d7c68 100644
--- a/src/map.h
+++ b/src/map.h
@@ -381,6 +381,12 @@ struct MapParams
//u16 max_objects_in_block;
};
+/*
+ ServerMap
+
+ This is the only map class that is able to generate map.
+*/
+
class ServerMap : public Map
{
public:
@@ -467,8 +473,10 @@ public:
virtual void PrintInfo(std::ostream &out);
private:
+ // Generator parameters
UnlimitedHeightmap *m_heightmap;
MapParams m_params;
+ PointAttributeDatabase m_padb;
std::string m_savedir;
bool m_map_saving_enabled;
@@ -503,6 +511,12 @@ struct MapDrawControl
class Client;
+/*
+ ClientMap
+
+ This is the only map class that is able to render itself on screen.
+*/
+
class ClientMap : public Map, public scene::ISceneNode
{
public: