diff options
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r-- | src/Mobs/Monster.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index 587c503e3..73ad5c6d3 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -76,8 +76,11 @@ protected: cMovementComponent * m_Movement; public: cMonster(const AString & a_ConfigName, eType a_MobType, const AString & a_SoundHurt, const AString & a_SoundDeath, double a_Width, double a_Height); + ~cMonster() { delete m_AI; delete m_Attack; delete m_Environment; delete m_Movement;} virtual void SpawnOn(cClientHandle & a_ClientHandle) /*override*/; + virtual void Tick(float a_Dt, cChunk & a_Chunk); + // Type Function virtual bool IsBaby (void) const { return false; } virtual bool IsTame (void) const { return false; } @@ -167,4 +170,7 @@ protected: AString m_OwnerName; AString m_OwnerUUID; + + + float m_DestroyTimer; }; |