1
0

Previous commit was missing the Entity.h file

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1232 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-03-01 19:33:41 +00:00
parent 39d5d6b85f
commit d636875fc0

View File

@ -138,17 +138,19 @@ public:
void Destroy(); // tolua_export
void RemoveFromChunk(void); // for internal use in cChunk
virtual void Tick(float a_Dt, MTRand & a_TickRandom); // tolua_export
virtual void HandlePhysics(float a_Dt) {} // tolua_export
virtual void Tick(float a_Dt, MTRand & a_TickRandom);
virtual void HandlePhysics(float a_Dt) {}
/** Descendants override this function to send a command to the specified client to spawn the entity on the client.
To spawn on all eligible clients, use cChunkMap::BroadcastSpawnEntity()
Needs to have a default implementation due to Lua bindings.
*/
virtual void SpawnOn(cClientHandle & a_Client) {ASSERT(!"SpawnOn() unimplemented!"); } // tolua_export
virtual void SpawnOn(cClientHandle & a_Client) {ASSERT(!"SpawnOn() unimplemented!"); }
void WrapRotation();
// tolua_begin
// Metadata flags; descendants may override the defaults:
virtual bool IsOnFire (void) const {return (m_BurnPeriod > 0); }
virtual bool IsCrouched (void) const {return false; }
@ -156,6 +158,8 @@ public:
virtual bool IsSprinting(void) const {return false; }
virtual bool IsRclking (void) const {return false; }
// tolua_end
protected:
virtual void Destroyed() {} // Called after the entity has been destroyed