summaryrefslogtreecommitdiffstats
path: root/src/Mobs/MagmaCube.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-05-09 12:44:57 +0200
committerMattes D <github@xoft.cz>2015-05-09 12:44:57 +0200
commit92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca (patch)
treeb1207b58343d2626043ba0946ed13be155c2e380 /src/Mobs/MagmaCube.h
parentFixed remaing pragmas (diff)
parentGetSizeName of cSlime and cMagmaCube is now static (diff)
downloadcuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.gz
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.bz2
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.lz
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.xz
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.zst
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/MagmaCube.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Mobs/MagmaCube.h b/src/Mobs/MagmaCube.h
index d66ea423a..b914dc867 100644
--- a/src/Mobs/MagmaCube.h
+++ b/src/Mobs/MagmaCube.h
@@ -19,10 +19,14 @@ public:
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
int GetSize(void) const { return m_Size; }
+
+ /** Returns the text describing the slime's size, as used by the client's resource subsystem for sounds.
+ Returns either "big" or "small". */
+ static AString GetSizeName(int a_Size);
protected:
- /// Size of the MagmaCube, 1 .. 3, with 1 being the smallest
+ /// Size of the MagmaCube, 1, 2 and 4, with 1 being the smallest
int m_Size;
} ;