From c8f8597774c47e755597eae4a120bea9479d0479 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 10 Sep 2013 23:01:02 +0100 Subject: Added void damage --- source/Entities/Entity.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/Entities/Entity.h') 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 -- cgit v1.2.3