diff options
author | archshift <admin@archshift.com> | 2014-07-20 10:43:07 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-07-20 10:43:07 +0200 |
commit | 726312602d293117fc4999897ef56869f2fef534 (patch) | |
tree | dfaa3c6349c91fc70d8b351496a9c0b3d8d12784 /src/Entities/Entity.h | |
parent | Added destroy-timer system to splash potion entities (diff) | |
download | cuberite-726312602d293117fc4999897ef56869f2fef534.tar cuberite-726312602d293117fc4999897ef56869f2fef534.tar.gz cuberite-726312602d293117fc4999897ef56869f2fef534.tar.bz2 cuberite-726312602d293117fc4999897ef56869f2fef534.tar.lz cuberite-726312602d293117fc4999897ef56869f2fef534.tar.xz cuberite-726312602d293117fc4999897ef56869f2fef534.tar.zst cuberite-726312602d293117fc4999897ef56869f2fef534.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index 88f8528e9..83fe76e7e 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -416,6 +416,9 @@ public: /** Gets remaining air of a monster */ int GetAirLevel(void) const { return m_AirLevel; } + /** Gets number of ticks this entity has existed for */ + long int GetTicksAlive(void) const { return m_TicksAlive; } + /** Gets the invulnerable ticks from the entity */ int GetInvulnerableTicks(void) const { return m_InvulnerableTicks; } @@ -521,6 +524,9 @@ protected: int m_AirLevel; int m_AirTickTimer; + /** The number of ticks this entity has been alive for */ + long int m_TicksAlive; + private: /** Measured in degrees, [-180, +180) */ double m_HeadYaw; |