summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Zombie.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Zombie.h')
-rw-r--r--src/Mobs/Zombie.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Mobs/Zombie.h b/src/Mobs/Zombie.h
index e3f499c64..12d0e95fc 100644
--- a/src/Mobs/Zombie.h
+++ b/src/Mobs/Zombie.h
@@ -1,8 +1,8 @@
#pragma once
#include "Monster.h"
-
-
+#include "Components/BurningComponent.h"
+#include "Chunk.h"
@@ -17,6 +17,11 @@ public:
CLASS_PROTODEF(cZombie)
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
+ virtual void Tick(float a_Dt, cChunk & a_Chunk)
+ {
+ super::Tick(a_Dt, a_Chunk);
+ m_BurningComponent.Tick(a_Dt, a_Chunk);
+ }
bool IsVillagerZombie(void) const { return m_IsVillagerZombie; }
bool IsConverting (void) const { return m_IsConverting; }
@@ -25,6 +30,8 @@ private:
bool m_IsVillagerZombie;
bool m_IsConverting;
+
+ cBurningComponent<cEntity, cChunk> m_BurningComponent;
} ;