From 4f17362aeb80e5339c58a5d3b0fbaeb88d9e701c Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 13 Feb 2012 21:47:03 +0000 Subject: Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it. git-svn-id: http://mc-server.googlecode.com/svn/trunk@251 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChestEntity.h | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) (limited to 'source/cChestEntity.h') diff --git a/source/cChestEntity.h b/source/cChestEntity.h index 6082b6a52..6d26d069f 100644 --- a/source/cChestEntity.h +++ b/source/cChestEntity.h @@ -1,10 +1,14 @@ + #pragma once #include "cBlockEntity.h" #include "cWindowOwner.h" -#include "FileDefine.h" #include "packets/cPacket_BlockAction.h" + + + + namespace Json { class Value; @@ -14,10 +18,17 @@ class cClientHandle; class cServer; class cItem; class cNBTData; -class cChestEntity : public cBlockEntity, public cWindowOwner + + + + + +class cChestEntity : + public cBlockEntity, + public cWindowOwner { public: - cChestEntity(int a_X, int a_Y, int a_Z, cChunk * a_Chunk); + cChestEntity(int a_X, int a_Y, int a_Z, cWorld * a_World); virtual ~cChestEntity(); virtual void Destroy(); @@ -44,8 +55,14 @@ public: static const int c_ChestWidth = 9; static const int c_ChestHeight = 3; + private: - cItem* m_Content; - bool m_TopChest; - cChestEntity *m_JoinedChest; -}; \ No newline at end of file + + cItem * m_Content; + bool m_TopChest; + cChestEntity * m_JoinedChest; +}; + + + + -- cgit v1.2.3