diff options
author | andrew <xdotftw@gmail.com> | 2014-02-15 19:06:47 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-02-15 19:06:47 +0100 |
commit | cf96e69716e0ccd0657cf275720bb11b915361c4 (patch) | |
tree | 19f61e8cf59268a249be7320a6a085783b832b06 /src/Map.h | |
parent | EmptyMap item handler (diff) | |
download | cuberite-cf96e69716e0ccd0657cf275720bb11b915361c4.tar cuberite-cf96e69716e0ccd0657cf275720bb11b915361c4.tar.gz cuberite-cf96e69716e0ccd0657cf275720bb11b915361c4.tar.bz2 cuberite-cf96e69716e0ccd0657cf275720bb11b915361c4.tar.lz cuberite-cf96e69716e0ccd0657cf275720bb11b915361c4.tar.xz cuberite-cf96e69716e0ccd0657cf275720bb11b915361c4.tar.zst cuberite-cf96e69716e0ccd0657cf275720bb11b915361c4.zip |
Diffstat (limited to 'src/Map.h')
-rw-r--r-- | src/Map.h | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -21,6 +21,7 @@ class cClientHandle; class cWorld; +class cPlayer; @@ -48,6 +49,11 @@ public: /** Send this map to the specified client. */ void SendTo(cClientHandle & a_Client); + /** Update a circular region with the specified radius and center (in pixels). */ + void UpdateRadius(int a_PixelX, int a_PixelZ, unsigned int a_Radius); + + void UpdateRadius(cPlayer & a_Player, unsigned int a_Radius); + // tolua_begin /** Erase pixel data */ @@ -71,13 +77,15 @@ public: cWorld * GetWorld(void) { return m_World; } + AString GetName(void) { return m_Name; } + eDimension GetDimension(void) const; const cColorList & GetData(void) const { return m_Data; } unsigned int GetNumPixels(void) const; - unsigned int GetNumBlocksPerPixel(void) const; + unsigned int GetPixelWidth(void) const; // tolua_end @@ -87,8 +95,6 @@ private: /** Update the specified pixel. */ bool UpdatePixel(unsigned int a_X, unsigned int a_Y); - void PixelToWorldCoords(unsigned int a_X, unsigned int a_Y, int & a_WorldX, int & a_WorldY); - unsigned int m_ID; unsigned int m_Width; @@ -105,6 +111,11 @@ private: cWorld * m_World; + //typedef std::vector<cPlayer*> cPlayerList; + //cPlayerList m_TrackedPlayers; + + AString m_Name; + friend class cMapSerializer; }; |