diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-04-28 13:51:40 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-04-28 13:51:40 +0200 |
commit | acd2804f316114a50b7103158a6bff5d3d14f673 (patch) | |
tree | 34c7018d226f2fc29e9eea604a043554abd43a39 /src/Mobs/Wither.h | |
parent | Revert "Changed the old invulnerable methods from the wither to the new." (diff) | |
download | cuberite-acd2804f316114a50b7103158a6bff5d3d14f673.tar cuberite-acd2804f316114a50b7103158a6bff5d3d14f673.tar.gz cuberite-acd2804f316114a50b7103158a6bff5d3d14f673.tar.bz2 cuberite-acd2804f316114a50b7103158a6bff5d3d14f673.tar.lz cuberite-acd2804f316114a50b7103158a6bff5d3d14f673.tar.xz cuberite-acd2804f316114a50b7103158a6bff5d3d14f673.tar.zst cuberite-acd2804f316114a50b7103158a6bff5d3d14f673.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Wither.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Mobs/Wither.h b/src/Mobs/Wither.h index 81c9df1b1..08b460009 100644 --- a/src/Mobs/Wither.h +++ b/src/Mobs/Wither.h @@ -17,6 +17,10 @@ public: CLASS_PROTODEF(cWither); + unsigned int GetWitherInvulnerableTicks(void) const { return m_WitherInvulnerableTicks; } + + void SetWitherInvulnerableTicks(unsigned int a_Ticks) { m_WitherInvulnerableTicks = a_Ticks; } + /** Returns whether the wither is invulnerable to arrows. */ bool IsArmored(void) const; @@ -28,7 +32,8 @@ public: private: - bool m_IsSpawnInvulnerable; + /** The number of ticks of invulnerability left after being initially created. Zero once invulnerability has expired. */ + unsigned int m_WitherInvulnerableTicks; } ; |