summaryrefslogtreecommitdiffstats
path: root/source/cEntity.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-02 21:19:57 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-02 21:19:57 +0100
commitdada2bea27bbc0b5dec68e8089ce5b8c296baabd (patch)
treec87790fa9c5ce89bddb126c94a3a90fb13ce9478 /source/cEntity.h
parentFixed player spawn teleport postion. (diff)
downloadcuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar.gz
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar.bz2
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar.lz
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar.xz
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.tar.zst
cuberite-dada2bea27bbc0b5dec68e8089ce5b8c296baabd.zip
Diffstat (limited to '')
-rw-r--r--source/cEntity.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/cEntity.h b/source/cEntity.h
index 509a5c1d5..c25c3e293 100644
--- a/source/cEntity.h
+++ b/source/cEntity.h
@@ -27,6 +27,7 @@
CLASS_DEF_ISA( classname, superclass ) \
CLASS_DEF_GETCLASS( classname )
+class cChunk;
class cWorld;
class cReferenceManager;
class Vector3d;
@@ -76,7 +77,8 @@ public: //tolua_export
inline int GetUniqueID() { return m_UniqueID; } //tolua_export
inline bool IsDestroyed() { return m_bDestroyed; } //tolua_export
- void Destroy() { m_bDestroyed = true; } //tolua_export
+ void Destroy(); //tolua_export
+ void RemoveFromChunk( cChunk* a_Chunk ); // for internal use in cChunk
virtual void Tick(float a_Dt) = 0; //tolua_export
@@ -105,6 +107,7 @@ protected:
bool m_bDirtyOrientation;
bool m_bDestroyed;
+ bool m_bRemovedFromChunk;
ENUM_ENTITY_TYPE m_EntityType;
private: