From 75937077136b9ec2eaba49c74543bdee323f68ff Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 9 Mar 2013 14:35:43 +0000 Subject: Pickups are now being saved into Anvil. Also changed cEntity rotation datatype to double git-svn-id: http://mc-server.googlecode.com/svn/trunk@1262 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Pickup.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/Pickup.h') diff --git a/source/Pickup.h b/source/Pickup.h index d3be60794..b294b4e45 100644 --- a/source/Pickup.h +++ b/source/Pickup.h @@ -38,7 +38,13 @@ public: virtual void Tick(float a_Dt, MTRand & a_TickRandom) override; virtual void HandlePhysics(float a_Dt) override; + short GetHealth(void) const { return m_Health; } + + /// Returns the number of ticks that this entity has existed + short GetAge(void) const { return (short)(m_Timer / 50); } + private: + short m_Health; Vector3d m_ResultingSpeed; //Can be used to modify the resulting speed for the current tick ;) -- cgit v1.2.3