diff options
author | andrew <xdotftw@gmail.com> | 2014-02-17 15:27:12 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-02-17 15:27:12 +0100 |
commit | 3b24bc870bb39a8b8812ed307250e1188b9ff788 (patch) | |
tree | 8b6cf830e06a0fe6bd1eb8769ba571f9316a4707 /src/Map.h | |
parent | cMap::UpdateRadius (diff) | |
download | cuberite-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.h | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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; |