diff options
author | Rorkh <rorkh@internet.ru> | 2021-09-18 11:10:31 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-10-02 22:18:18 +0200 |
commit | 4c5d9d38f45ae7c18a3e9799152305757a8a1d2a (patch) | |
tree | 6c369d0901427be8ab92bef9cd229e60a21486a0 /src/Mobs/Ghast.h | |
parent | Snipe skeleton achievment (diff) | |
download | cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.gz cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.bz2 cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.lz cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.xz cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.zst cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.zip |
Diffstat (limited to 'src/Mobs/Ghast.h')
-rw-r--r-- | src/Mobs/Ghast.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/Mobs/Ghast.h b/src/Mobs/Ghast.h index 8161b93bf..755ec3b89 100644 --- a/src/Mobs/Ghast.h +++ b/src/Mobs/Ghast.h @@ -18,14 +18,16 @@ public: CLASS_PROTODEF(cGhast) - 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; - virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override; - bool IsCharging(void) const { return m_IsCharging; } private: + + virtual bool Attack(std::chrono::milliseconds a_Dt) override; + virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override; + virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override; + virtual bool IsNetherNative(void) override { return true; } + virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; + /** Specifies whether or not the ghast has started shooting a fireball. */ bool m_IsCharging; @@ -36,7 +38,3 @@ private: Only used while m_IsCharging is true. */ int m_TicksUntilShot; } ; - - - - |