From 674fe1e955f729e8328772313c45fe76857ec835 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 19 Aug 2012 21:14:45 +0000 Subject: Window, Chest, Furnace and Pawn are not using cPackets at all git-svn-id: http://mc-server.googlecode.com/svn/trunk@762 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cEntity.h | 50 +++++++++++++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 19 deletions(-) (limited to 'source/cEntity.h') diff --git a/source/cEntity.h b/source/cEntity.h index d5614eb84..ed32cdf4b 100644 --- a/source/cEntity.h +++ b/source/cEntity.h @@ -48,25 +48,37 @@ class cPacket; - -class cEntity //tolua_export -{ //tolua_export -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( cWorld* a_World ); //tolua_export - - enum eEntityType //tolua_export - { //tolua_export - eEntityType_Entity, //tolua_export - eEntityType_Player, //tolua_export - eEntityType_Pickup //tolua_export - }; //tolua_export - - virtual unsigned int GetEntityType() { return m_EntityType; } //tolua_export - virtual bool IsA( const char* a_EntityType ); //tolua_export - virtual const char* GetClass(); //tolua_export +// tolua_begin +class cEntity +{ +public: + enum + { + ENTITY_STATUS_HURT = 2, + ENTITY_STATUS_DEAD = 3, + ENTITY_STATUS_WOLF_TAMING = 6, + ENTITY_STATUS_WOLF_TAMED = 7, + ENTITY_STATUS_WOLF_SHAKING = 8, + ENTITY_STATUS_EATING_ACCEPTED = 9, + ENTITY_STATUS_SHEEP_EATING = 10, + } ; + + cEntity(const double & a_X, const double & a_Y, const double & a_Z); + virtual ~cEntity(); + + virtual void Initialize( cWorld* a_World ); + + enum eEntityType + { + eEntityType_Entity, + eEntityType_Player, + eEntityType_Pickup + }; + + virtual unsigned int GetEntityType() { return m_EntityType; } + virtual bool IsA( const char* a_EntityType ); + virtual const char* GetClass(); + // tolua_end cWorld * GetWorld(void) const { return m_World; } //tolua_export -- cgit v1.2.3