23 virtual
bool Attack(
std::chrono::milliseconds a_Dt) override;
cSlime(int a_Size)
Creates a slime of the specified size; size can be 1, 2 or 4, with 1 is the smallest and 4 is the tal...
static AString GetSizeName(int a_Size)
Returns the text describing the slime's size, as used by the client's resource subsystem for sounds...
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
#define CLASS_PROTODEF(classname)
int m_Size
Size of the slime, with 1 being the smallest.
virtual void KilledBy(TakeDamageInfo &a_TDI) override
Called when the health drops below zero.
This class bridges a vector of cItem for safe access via Lua.
virtual bool Attack(std::chrono::milliseconds a_Dt) override
Try to perform attack returns true if attack was deemed successful (hit player, fired projectile...