diff options
author | Mat <mail@mathias.is> | 2020-03-26 18:54:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 18:54:40 +0100 |
commit | 84f86a467e7c289936571c738f9422868ecaaee6 (patch) | |
tree | 3145442b002ae6eb18589a3d9e6ebd0de27e4197 /src/Mobs/Blaze.h | |
parent | Update Core (diff) | |
download | cuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar cuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar.gz cuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar.bz2 cuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar.lz cuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar.xz cuberite-84f86a467e7c289936571c738f9422868ecaaee6.tar.zst cuberite-84f86a467e7c289936571c738f9422868ecaaee6.zip |
Diffstat (limited to 'src/Mobs/Blaze.h')
-rw-r--r-- | src/Mobs/Blaze.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Mobs/Blaze.h b/src/Mobs/Blaze.h index ca755b626..3e6726efa 100644 --- a/src/Mobs/Blaze.h +++ b/src/Mobs/Blaze.h @@ -17,6 +17,15 @@ public: CLASS_PROTODEF(cBlaze) + virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override; virtual bool Attack(std::chrono::milliseconds a_Dt) override; + +private: + /** Specifies whether or not the blaze has started shooting fireballs. */ + bool m_IsCharging; + + /** Number of ticks since the blaze started charging. + Used to create 3 successive projectiles. */ + int m_ChargeTimer; } ; |