summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Wither.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Wither.h')
-rw-r--r--src/Mobs/Wither.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Mobs/Wither.h b/src/Mobs/Wither.h
index cc327741a..b0d1f4a3d 100644
--- a/src/Mobs/Wither.h
+++ b/src/Mobs/Wither.h
@@ -19,12 +19,18 @@ public:
/** Returns whether the wither is invulnerable to arrows. */
bool IsArmored(void) const;
- int GetWitherInvulnerableTicks() const { return 0; }
+ int GetWitherInvulnerableTicks() const { return m_WitherInvulnerableTicks; }
+ void SetWitherInvulnerableTicks(unsigned int a_Ticks) { m_WitherInvulnerableTicks = a_Ticks; }
// cEntity overrides
virtual bool Initialize(cWorld & a_World) override;
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
+private:
+
+ /** The number of ticks of invulnerability left after being initially created. Zero once invulnerability has expired. */
+ unsigned int m_WitherInvulnerableTicks;
+
} ;