diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-09-09 16:06:12 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-09-09 16:06:12 +0200 |
commit | e5683b4ac64dedb1d71f8376966bc7c039b21712 (patch) | |
tree | 3aa83025aea8ac4c1ce849a546e73df1ec51f54c /src/Mobs/Zombie.h | |
parent | Merge branch 'master' into ComponentRewrite (diff) | |
download | cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar.gz cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar.bz2 cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar.lz cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar.xz cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar.zst cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Zombie.h | 11 |
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; } ; |