summaryrefslogtreecommitdiffstats
path: root/src/Map.h
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-02-17 15:27:12 +0100
committerandrew <xdotftw@gmail.com>2014-02-17 15:27:12 +0100
commit3b24bc870bb39a8b8812ed307250e1188b9ff788 (patch)
tree8b6cf830e06a0fe6bd1eb8769ba571f9316a4707 /src/Map.h
parentcMap::UpdateRadius (diff)
downloadcuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar
cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar.gz
cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar.bz2
cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar.lz
cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar.xz
cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.tar.zst
cuberite-3b24bc870bb39a8b8812ed307250e1188b9ff788.zip
Diffstat (limited to '')
-rw-r--r--src/Map.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Map.h b/src/Map.h
index 4134d53a1..805dfb845 100644
--- a/src/Map.h
+++ b/src/Map.h
@@ -38,6 +38,8 @@ public:
typedef std::vector<ColorID> cColorList;
+ static const unsigned int DEFAULT_RADIUS = 128;
+
public:
@@ -54,6 +56,10 @@ public:
void UpdateRadius(cPlayer & a_Player, unsigned int a_Radius);
+ void UpdateTrackedPlayers(void);
+
+ void AddTrackedPlayer(cPlayer * a_Player);
+
// tolua_begin
/** Erase pixel data */
@@ -93,7 +99,7 @@ public:
private:
/** Update the specified pixel. */
- bool UpdatePixel(unsigned int a_X, unsigned int a_Y);
+ bool UpdatePixel(unsigned int a_X, unsigned int a_Z);
unsigned int m_ID;
@@ -111,8 +117,9 @@ private:
cWorld * m_World;
- //typedef std::vector<cPlayer*> cPlayerList;
- //cPlayerList m_TrackedPlayers;
+ typedef std::set<cPlayer*> cTrackedPlayerList;
+
+ cTrackedPlayerList m_TrackedPlayers;
AString m_Name;