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/cFurnaceEntity.h | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) (limited to 'source/cFurnaceEntity.h') diff --git a/source/cFurnaceEntity.h b/source/cFurnaceEntity.h index 99209acf8..19b518cda 100644 --- a/source/cFurnaceEntity.h +++ b/source/cFurnaceEntity.h @@ -1,23 +1,33 @@ + #pragma once #include "cBlockEntity.h" #include "cWindowOwner.h" #include "FileDefine.h" + + + + namespace Json { class Value; } -class cChunk; class cClientHandle; class cServer; class cItem; class cNBTData; -class cFurnaceEntity : public cBlockEntity, public cWindowOwner + + + + +class cFurnaceEntity : + public cBlockEntity, + public cWindowOwner { public: - cFurnaceEntity(int a_X, int a_Y, int a_Z, cChunk* a_Chunk); + cFurnaceEntity(int a_X, int a_Y, int a_Z, cWorld * a_World); virtual ~cFurnaceEntity(); virtual void Destroy(); @@ -32,12 +42,18 @@ public: bool StartCooking(); void ResetCookTimer(); + private: - cItem* m_Items; - cItem* m_CookingItem; - float m_CookTime; - float m_TimeCooked; - - float m_BurnTime; - float m_TimeBurned; -}; \ No newline at end of file + + cItem * m_Items; + cItem * m_CookingItem; + float m_CookTime; + float m_TimeCooked; + + float m_BurnTime; + float m_TimeBurned; +}; + + + + -- cgit v1.2.3