2012-12-21 06:04:08 -05:00
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
2012-09-23 16:53:08 -04:00
|
|
|
#include "AggressiveMonster.h"
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2012-12-21 07:21:20 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-21 06:04:08 -05:00
|
|
|
class cSlime :
|
|
|
|
public cAggressiveMonster
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
2012-12-21 06:04:08 -05:00
|
|
|
typedef cAggressiveMonster super;
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
public:
|
2014-07-18 10:55:28 -04:00
|
|
|
/** Creates a slime of the specified size; size can be 1, 2 or 4, with 1 is the smallest and 4 is the tallest. */
|
2013-07-01 06:39:56 -04:00
|
|
|
cSlime(int a_Size);
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2014-07-22 18:36:13 -04:00
|
|
|
CLASS_PROTODEF(cSlime)
|
2012-12-21 06:04:08 -05:00
|
|
|
|
2014-07-18 17:20:42 -04:00
|
|
|
// cAggressiveMonster overrides:
|
2013-07-01 06:39:56 -04:00
|
|
|
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
|
2014-07-17 16:32:23 -04:00
|
|
|
virtual void Attack(float a_Dt) override;
|
|
|
|
virtual void KilledBy(TakeDamageInfo & a_TDI) override;
|
|
|
|
|
2013-10-08 14:20:49 -04:00
|
|
|
int GetSize(void) const { return m_Size; }
|
2014-07-18 17:20:42 -04:00
|
|
|
|
|
|
|
/** Returns the text describing the slime's size, as used by the client's resource subsystem for sounds.
|
|
|
|
Returns either "big" or "small". */
|
2014-07-17 17:32:01 -04:00
|
|
|
const AString GetSizeName(int a_Size) const;
|
2013-07-01 06:39:56 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2014-07-18 17:20:42 -04:00
|
|
|
/** Size of the slime, with 1 being the smallest.
|
|
|
|
Vanilla uses sizes 1, 2 and 4 only. */
|
2013-07-01 06:39:56 -04:00
|
|
|
int m_Size;
|
2012-12-21 06:04:08 -05:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
|