summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Wither.h
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-03-24 11:29:19 +0100
committerandrew <xdotftw@gmail.com>2014-03-24 11:29:19 +0100
commit6b77dc74ade3d8088da09d26c1b701d92ef28e9e (patch)
tree78e16164d1668d628ef0f545a5e62f5cbc1025fc /src/Mobs/Wither.h
parentPlugins can set flying speed. (diff)
downloadcuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.gz
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.bz2
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.lz
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.xz
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.zst
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.zip
Diffstat (limited to 'src/Mobs/Wither.h')
-rw-r--r--src/Mobs/Wither.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Mobs/Wither.h b/src/Mobs/Wither.h
index 56effc6bb..df3a57798 100644
--- a/src/Mobs/Wither.h
+++ b/src/Mobs/Wither.h
@@ -16,8 +16,22 @@ public:
cWither(void);
CLASS_PROTODEF(cWither);
+
+ unsigned int GetNumInvulnerableTicks(void) const { return m_InvulnerableTicks; }
+
+ void SetNumInvulnerableTicks(unsigned int a_Ticks) { m_InvulnerableTicks = a_Ticks; }
+ // Override functions
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
+
+ virtual void DoTakeDamage(TakeDamageInfo & a_TDI) override;
+
+ virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
+
+private:
+
+ /** The number of ticks of invulnerability left after being initially created. Zero once invulnerability has expired. */
+ unsigned int m_InvulnerableTicks;
} ;