summaryrefslogtreecommitdiffstats
path: root/source/Entities/Entity.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-09-11 21:19:39 +0200
committerMattes D <github@xoft.cz>2013-09-11 21:19:39 +0200
commit85804d085deaa311a91dc272b0715c0f18771207 (patch)
tree74bff08b3a69a18d6832a7bb3d5660281f600f3e /source/Entities/Entity.h
parentMerge pull request #161 from worktycho/master (diff)
parentMore changes [SEE DESC] (diff)
downloadcuberite-85804d085deaa311a91dc272b0715c0f18771207.tar
cuberite-85804d085deaa311a91dc272b0715c0f18771207.tar.gz
cuberite-85804d085deaa311a91dc272b0715c0f18771207.tar.bz2
cuberite-85804d085deaa311a91dc272b0715c0f18771207.tar.lz
cuberite-85804d085deaa311a91dc272b0715c0f18771207.tar.xz
cuberite-85804d085deaa311a91dc272b0715c0f18771207.tar.zst
cuberite-85804d085deaa311a91dc272b0715c0f18771207.zip
Diffstat (limited to 'source/Entities/Entity.h')
-rw-r--r--source/Entities/Entity.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Entities/Entity.h b/source/Entities/Entity.h
index 48d2e7602..a2c99d2a0 100644
--- a/source/Entities/Entity.h
+++ b/source/Entities/Entity.h
@@ -267,6 +267,9 @@ public:
/// Updates the state related to this entity being on fire
virtual void TickBurning(cChunk & a_Chunk);
+
+ /// Handles when the entity is in the void
+ virtual void TickInVoid(cChunk & a_Chunk);
/// Called when the entity starts burning
virtual void OnStartedBurning(void);
@@ -389,6 +392,9 @@ protected:
/// Time, in ticks, until the entity extinguishes its fire
int m_TicksLeftBurning;
+
+ /// Time, in ticks, since the last damage dealt by the void. Reset to zero when moving out of the void.
+ int m_TicksSinceLastVoidDamage;
virtual void Destroyed(void) {} // Called after the entity has been destroyed