diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-17 22:32:23 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-17 22:32:23 +0200 |
commit | 52d4c49d5cd2c15078c84a18821761b723833584 (patch) | |
tree | 6c0eebd51cdcbc7a9ba71ad3341e300622d21dc8 /src/Mobs/Slime.h | |
parent | Fixed mob knockback (diff) | |
download | cuberite-52d4c49d5cd2c15078c84a18821761b723833584.tar cuberite-52d4c49d5cd2c15078c84a18821761b723833584.tar.gz cuberite-52d4c49d5cd2c15078c84a18821761b723833584.tar.bz2 cuberite-52d4c49d5cd2c15078c84a18821761b723833584.tar.lz cuberite-52d4c49d5cd2c15078c84a18821761b723833584.tar.xz cuberite-52d4c49d5cd2c15078c84a18821761b723833584.tar.zst cuberite-52d4c49d5cd2c15078c84a18821761b723833584.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Slime.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Mobs/Slime.h b/src/Mobs/Slime.h index 782c3113f..1f66d9afb 100644 --- a/src/Mobs/Slime.h +++ b/src/Mobs/Slime.h @@ -13,17 +13,21 @@ class cSlime : typedef cAggressiveMonster super; public: - /// Creates a slime of the specified size; size is 1 .. 3, with 1 being the smallest + /** Creates a slime of the specified size; size is 1 .. 3, with 1 being the smallest */ cSlime(int a_Size); CLASS_PROTODEF(cSlime); virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override; + virtual void Attack(float a_Dt) override; + virtual void KilledBy(TakeDamageInfo & a_TDI) override; + int GetSize(void) const { return m_Size; } + const AString & GetSizeName(int a_Size); protected: - /// Size of the slime, 1 .. 3, with 1 being the smallest + /** Size of the slime, 1 .. 3, with 1 being the smallest */ int m_Size; } ; |