diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-09-11 00:01:02 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-09-11 00:01:02 +0200 |
commit | c8f8597774c47e755597eae4a120bea9479d0479 (patch) | |
tree | e58bf41015675934698431f81007e4de8e62697c /source/Entities/Entity.h | |
parent | Entities now maintain speed outside of world (diff) | |
download | cuberite-c8f8597774c47e755597eae4a120bea9479d0479.tar cuberite-c8f8597774c47e755597eae4a120bea9479d0479.tar.gz cuberite-c8f8597774c47e755597eae4a120bea9479d0479.tar.bz2 cuberite-c8f8597774c47e755597eae4a120bea9479d0479.tar.lz cuberite-c8f8597774c47e755597eae4a120bea9479d0479.tar.xz cuberite-c8f8597774c47e755597eae4a120bea9479d0479.tar.zst cuberite-c8f8597774c47e755597eae4a120bea9479d0479.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Entities/Entity.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Entities/Entity.h b/source/Entities/Entity.h index b4777d249..df671a564 100644 --- a/source/Entities/Entity.h +++ b/source/Entities/Entity.h @@ -255,6 +255,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); @@ -377,6 +380,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 |