From 37276a4430e26f5b3ab56e07d5f30a194f75982e Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 1 Jul 2013 10:39:56 +0000 Subject: Rewritten entity-on-fire management ("forever on fire" bugs) Fixes FS #297 and part of FS #403. Added sizes to all entities. Moved all damage-related functions from cPawn to cEntity API change: renamed cPawn:TeleportTo() to cEntity:TeleportToCoords() git-svn-id: http://mc-server.googlecode.com/svn/trunk@1635 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Mobs/Slime.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source/Mobs/Slime.h') diff --git a/source/Mobs/Slime.h b/source/Mobs/Slime.h index 17bf0807a..88136ff32 100644 --- a/source/Mobs/Slime.h +++ b/source/Mobs/Slime.h @@ -13,11 +13,17 @@ class cSlime : typedef cAggressiveMonster super; public: - cSlime(void); + /// 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, cPawn * a_Killer = NULL) override; + virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override; + +protected: + + /// Size of the slime, 1 .. 3, with 1 being the smallest + int m_Size; } ; -- cgit v1.2.3