1
0
cuberite-2a/src/Mobs/Wither.h

39 lines
754 B
C
Raw Normal View History

#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; }
2014-03-25 03:10:55 -04:00
// cEntity overrides
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
} ;