From bc466f07a454271d4845a7e8c7f0822541c5afbd Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 20 Sep 2012 13:25:54 +0000 Subject: Refactored windows. As described on the forum: http://forum.mc-server.org/showthread.php?tid=561 For now, only basic clicking works; shift-click not implemented yet. git-svn-id: http://mc-server.googlecode.com/svn/trunk@867 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cFurnaceEntity.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/cFurnaceEntity.h') diff --git a/source/cFurnaceEntity.h b/source/cFurnaceEntity.h index 953644097..43bf615a6 100644 --- a/source/cFurnaceEntity.h +++ b/source/cFurnaceEntity.h @@ -2,7 +2,7 @@ #pragma once #include "cBlockEntity.h" -#include "cWindowOwner.h" +#include "UI/cWindowOwner.h" #include "cItem.h" @@ -49,7 +49,7 @@ public: void ResetCookTimer(); - const cItem & GetSlot(int i) const { return m_Items[i]; } + const cItem * GetSlot(int i) const { return &(m_Items[i]); } void SetSlot(int a_Slot, const cItem & a_Item); @@ -69,6 +69,8 @@ private: float m_TimeCooked; // Amount of time that the current item has been cooking float m_BurnTime; // Amount of time that the current fuel can burn (in total); zero if no fuel burning float m_TimeBurned; // Amount of time that the current fuel has been burning + + void BroadcastProgress(int a_ProgressbarID, short a_Value); }; -- cgit v1.2.3