31 virtual bool IsUndead(
void)
override {
return true; }
34 virtual void Tick(std::chrono::milliseconds a_Dt,
cChunk & a_Chunk)
override;
#define CLASS_PROTODEF(classname)
This class bridges a vector of cItem for safe access via Lua.
cAggressiveMonster(const AString &a_ConfigName, eMonsterType a_MobType, const AString &a_SoundHurt, const AString &a_SoundDeath, const AString &a_SoundAmbient, float a_Width, float a_Height)
unsigned int GetWitherInvulnerableTicks(void) const
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
virtual void SpawnOn(cClientHandle &a_Client) override
Descendants override this function to send a command to the specified client to spawn the entity on t...
virtual bool DoTakeDamage(TakeDamageInfo &a_TDI) override
Makes this entity take damage specified in the a_TDI.
unsigned int m_WitherInvulnerableTicks
The number of ticks of invulnerability left after being initially created.
bool IsArmored(void) const
Returns whether the wither is invulnerable to arrows.
virtual bool IsUndead(void) override
Returns whether this mob is undead (skeleton, zombie, etc.)
virtual void KilledBy(TakeDamageInfo &a_TDI) override
Called when the health drops below zero.
void SetWitherInvulnerableTicks(unsigned int a_Ticks)