From e2f1cf51c759f0c70bc1dc9f1db3a8575e1db10f Mon Sep 17 00:00:00 2001 From: faketruth Date: Mon, 31 Oct 2011 00:52:20 +0000 Subject: Prepared some parts of the code for multi world support, I created lots of TODO's git-svn-id: http://mc-server.googlecode.com/svn/trunk@29 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cEntity.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/cEntity.h') diff --git a/source/cEntity.h b/source/cEntity.h index 602abeeaf..509a5c1d5 100644 --- a/source/cEntity.h +++ b/source/cEntity.h @@ -27,6 +27,7 @@ CLASS_DEF_ISA( classname, superclass ) \ CLASS_DEF_GETCLASS( classname ) +class cWorld; class cReferenceManager; class Vector3d; class Vector3f; @@ -37,7 +38,7 @@ public: //tolua_export cEntity(const double & a_X, const double & a_Y, const double & a_Z); //tolua_export virtual ~cEntity(); //tolua_export - virtual void Initialize(); //tolua_export + virtual void Initialize( cWorld* a_World ); //tolua_export enum ENUM_ENTITY_TYPE //tolua_export { //tolua_export @@ -50,6 +51,7 @@ public: //tolua_export virtual bool IsA( const char* a_EntityType ); //tolua_export virtual const char* GetClass(); //tolua_export + cWorld* GetWorld() { return m_World; } //tolua_export const Vector3d & GetPosition(); //tolua_export const double & GetPosX(); //tolua_export @@ -105,4 +107,6 @@ protected: bool m_bDestroyed; ENUM_ENTITY_TYPE m_EntityType; +private: + cWorld* m_World; }; //tolua_export -- cgit v1.2.3