2013-09-18 17:17:43 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "AggressiveMonster.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cWither :
|
|
|
|
public cAggressiveMonster
|
|
|
|
{
|
|
|
|
typedef cAggressiveMonster super;
|
|
|
|
|
|
|
|
public:
|
|
|
|
cWither(void);
|
|
|
|
|
|
|
|
CLASS_PROTODEF(cWither);
|
2014-03-24 06:29:19 -04:00
|
|
|
|
|
|
|
unsigned int GetNumInvulnerableTicks(void) const { return m_InvulnerableTicks; }
|
|
|
|
|
|
|
|
void SetNumInvulnerableTicks(unsigned int a_Ticks) { m_InvulnerableTicks = a_Ticks; }
|
2013-09-18 17:17:43 -04:00
|
|
|
|
2014-03-25 03:10:55 -04:00
|
|
|
// cEntity overrides
|
2013-09-18 17:17:43 -04:00
|
|
|
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
|
2014-03-24 06:29:19 -04:00
|
|
|
virtual void DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
|
|
|
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
/** The number of ticks of invulnerability left after being initially created. Zero once invulnerability has expired. */
|
|
|
|
unsigned int m_InvulnerableTicks;
|
2014-03-25 03:10:55 -04:00
|
|
|
|
2013-09-18 17:17:43 -04:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|