summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Blaze.h
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-03-26 18:54:40 +0100
committerGitHub <noreply@github.com>2020-03-26 18:54:40 +0100
commit84f86a467e7c289936571c738f9422868ecaaee6 (patch)
tree3145442b002ae6eb18589a3d9e6ebd0de27e4197 /src/Mobs/Blaze.h
parentUpdate Core (diff)
downloadcuberite-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 '')
-rw-r--r--src/Mobs/Blaze.h9
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;
} ;