summaryrefslogtreecommitdiffstats
path: root/src/Map.cpp
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-02-13 20:36:24 +0100
committerandrew <xdotftw@gmail.com>2014-02-13 20:36:24 +0100
commit32b465b8e1e1a6fa9e966a1376209f292331d4ae (patch)
treeca6e9abef0390dbd377c3cbf77fd25b34bade078 /src/Map.cpp
parentImplementation of in-game maps (diff)
downloadcuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar.gz
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar.bz2
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar.lz
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar.xz
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar.zst
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.zip
Diffstat (limited to 'src/Map.cpp')
-rw-r--r--src/Map.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Map.cpp b/src/Map.cpp
index f1b690698..f99b01752 100644
--- a/src/Map.cpp
+++ b/src/Map.cpp
@@ -12,6 +12,24 @@
+cMap::cMap(unsigned int a_ID, cWorld * a_World)
+ : m_ID(a_ID)
+ , m_Width(128)
+ , m_Height(128)
+ , m_Scale(3)
+ , m_CenterX(0)
+ , m_CenterZ(0)
+ , m_World(a_World)
+{
+ m_Data.assign(m_Width * m_Height, 0);
+
+ // Do not update map
+}
+
+
+
+
+
cMap::cMap(unsigned int a_ID, int a_CenterX, int a_CenterZ, cWorld * a_World, unsigned int a_Scale)
: m_ID(a_ID)
, m_Width(128)