2013-07-29 12:13:03 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "AggressiveMonster.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-18 22:17:43 +01:00
|
|
|
class cMagmaCube :
|
2013-07-29 12:13:03 +01:00
|
|
|
public cAggressiveMonster
|
|
|
|
|
{
|
|
|
|
|
typedef cAggressiveMonster super;
|
2016-02-05 23:45:45 +02:00
|
|
|
|
2013-07-29 12:13:03 +01:00
|
|
|
public:
|
2015-07-31 16:49:10 +02:00
|
|
|
/** Creates a MagmaCube of the specified size; with 1 being the smallest */
|
2013-09-18 22:17:43 +01:00
|
|
|
cMagmaCube(int a_Size);
|
2013-07-29 12:13:03 +01:00
|
|
|
|
2014-07-22 15:36:13 -07:00
|
|
|
CLASS_PROTODEF(cMagmaCube)
|
2013-07-29 12:13:03 +01:00
|
|
|
|
2014-10-20 21:55:07 +01:00
|
|
|
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
|
2013-10-08 19:20:49 +01:00
|
|
|
int GetSize(void) const { return m_Size; }
|
2015-05-06 23:12:17 -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". */
|
2015-05-08 20:50:05 -04:00
|
|
|
static AString GetSizeName(int a_Size);
|
2016-02-05 23:45:45 +02:00
|
|
|
|
2013-07-29 12:13:03 +01:00
|
|
|
protected:
|
|
|
|
|
|
2015-07-31 16:49:10 +02:00
|
|
|
/** Size of the MagmaCube, with 1 being the smallest */
|
2013-07-29 12:13:03 +01:00
|
|
|
int m_Size;
|
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|