diff options
Diffstat (limited to 'src/Mobs/Wither.h')
-rw-r--r-- | src/Mobs/Wither.h | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/Mobs/Wither.h b/src/Mobs/Wither.h index 2403823ed..409419efb 100644 --- a/src/Mobs/Wither.h +++ b/src/Mobs/Wither.h @@ -1,37 +1,30 @@ #pragma once -#include "AggressiveMonster.h" +#include "Monster.h" class cWither : - public cAggressiveMonster + public cMonster { - typedef cAggressiveMonster super; + typedef cMonster super; public: cWither(void); CLASS_PROTODEF(cWither) - unsigned int GetWitherInvulnerableTicks(void) const { return m_WitherInvulnerableTicks; } - - void SetWitherInvulnerableTicks(unsigned int a_Ticks) { m_WitherInvulnerableTicks = a_Ticks; } - /** Returns whether the wither is invulnerable to arrows. */ bool IsArmored(void) const; + int GetWitherInvulnerableTicks() const { return m_WitherInvulnerableTicks; } + void SetWitherInvulnerableTicks(unsigned int a_Ticks) { m_WitherInvulnerableTicks = a_Ticks; } - // cEntity overrides - virtual bool Initialize(cWorld & a_World) override; - virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override; - virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override; - virtual void Tick(float a_Dt, cChunk & a_Chunk) override; - virtual void KilledBy(TakeDamageInfo & a_TDI) override; - - virtual bool IsUndead(void) override { return true; } + // cEntity /*override*/s + virtual bool Initialize(cWorld & a_World) /*override*/; + virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) /*override*/; private: |