summaryrefslogtreecommitdiffstats
path: root/source/cEntity.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-07 14:36:30 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-07 14:36:30 +0100
commit787382caf8d3f7f8df4598b29586b44b7b071c53 (patch)
tree347e1249bbe371f820cf408d99549fb8734e0ac0 /source/cEntity.h
parentNo need to reset zlib (copypasta error) (diff)
downloadcuberite-787382caf8d3f7f8df4598b29586b44b7b071c53.tar
cuberite-787382caf8d3f7f8df4598b29586b44b7b071c53.tar.gz
cuberite-787382caf8d3f7f8df4598b29586b44b7b071c53.tar.bz2
cuberite-787382caf8d3f7f8df4598b29586b44b7b071c53.tar.lz
cuberite-787382caf8d3f7f8df4598b29586b44b7b071c53.tar.xz
cuberite-787382caf8d3f7f8df4598b29586b44b7b071c53.tar.zst
cuberite-787382caf8d3f7f8df4598b29586b44b7b071c53.zip
Diffstat (limited to 'source/cEntity.h')
-rw-r--r--source/cEntity.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/cEntity.h b/source/cEntity.h
index 0165276b6..58c0b69f4 100644
--- a/source/cEntity.h
+++ b/source/cEntity.h
@@ -87,15 +87,15 @@ public: //tolua_export
void SetPosX( const double & a_PosX ); //tolua_export
void SetPosY( const double & a_PosY ); //tolua_export
void SetPosZ( const double & a_PosZ ); //tolua_export
- void SetPosition( const double & a_PosX, const double & a_PosY, const double & a_PosZ ); //tolua_export
+ void SetPosition( const double & a_PosX, const double & a_PosY, const double & a_PosZ );//tolua_export
void SetPosition( const Vector3d & a_Pos ); //tolua_export
void SetRot( const Vector3f & a_Rot ); //tolua_export
void SetRotation( float a_Rotation ); //tolua_export
void SetPitch( float a_Pitch ); //tolua_export
void SetRoll( float a_Roll ); //tolua_export
- inline int GetUniqueID(void) const { return m_UniqueID; } //tolua_export
- inline bool IsDestroyed(void) const { return m_bDestroyed; } //tolua_export
+ inline int GetUniqueID(void) const { return m_UniqueID; } //tolua_export
+ inline bool IsDestroyed(void) const { return m_bDestroyed; } //tolua_export
void Destroy(); //tolua_export
void RemoveFromChunk(void); // for internal use in cChunk
@@ -108,6 +108,7 @@ public: //tolua_export
void WrapRotation();
protected:
+ virtual void Destroyed() {} // Called after the entity has been destroyed
void SetWorld( cWorld* a_World ) { m_World = a_World; }
void MoveToCorrectChunk(bool a_bIgnoreOldChunk = false);