diff options
author | archshift <admin@archshift.com> | 2014-04-23 23:56:39 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-04-24 00:22:49 +0200 |
commit | c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b (patch) | |
tree | 94ce183469b261a995faaf64dfa7623571fb146a /src/Mobs/MagmaCube.h | |
parent | Updated docs for StringToEnchantmentID. (diff) | |
download | cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar.gz cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar.bz2 cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar.lz cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar.xz cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar.zst cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.zip |
Diffstat (limited to 'src/Mobs/MagmaCube.h')
-rw-r--r-- | src/Mobs/MagmaCube.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Mobs/MagmaCube.h b/src/Mobs/MagmaCube.h new file mode 100644 index 000000000..43065cae5 --- /dev/null +++ b/src/Mobs/MagmaCube.h @@ -0,0 +1,31 @@ +#pragma once + +#include "AggressiveMonster.h" + + + + + +class cMagmaCube : + public cAggressiveMonster +{ + typedef cAggressiveMonster super; + +public: + /// Creates a MagmaCube of the specified size; size is 1 .. 3, with 1 being the smallest + cMagmaCube(int a_Size); + + CLASS_PROTODEF(cMagmaCube); + + virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override; + int GetSize(void) const { return m_Size; } + +protected: + + /// Size of the MagmaCube, 1 .. 3, with 1 being the smallest + int m_Size; +} ; + + + + |