From 5c3235ecdc3f718ce20e006f1ecfa2159df82c87 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 26 May 2013 14:39:04 +0000 Subject: Implemented droppers Added a common ancestor class "DropSpenser" that has the common code for dropper and dispenser and is Lua-accessible, too. The Debuggers plugin now triggers both droppers and dispensers when rclking them with a redstone torch. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1514 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/UI/SlotArea.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'source/UI/SlotArea.h') diff --git a/source/UI/SlotArea.h b/source/UI/SlotArea.h index 2b56f3228..8358f5316 100644 --- a/source/UI/SlotArea.h +++ b/source/UI/SlotArea.h @@ -15,7 +15,7 @@ class cWindow; class cPlayer; class cChestEntity; -class cDispenserEntity; +class cDropSpenserEntity; class cFurnaceEntity; class cCraftingRecipe; @@ -250,20 +250,19 @@ protected: -class cSlotAreaDispenser : +class cSlotAreaDropSpenser : public cSlotArea { typedef cSlotArea super; public: - cSlotAreaDispenser(cDispenserEntity * a_Dispenser, cWindow & a_ParentWindow); + cSlotAreaDropSpenser(cDropSpenserEntity * a_DropSpenser, cWindow & a_ParentWindow); - virtual void Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a_ClickAction, const cItem & a_ClickedItem) override; virtual const cItem * GetSlot(int a_SlotNum, cPlayer & a_Player) override; virtual void SetSlot(int a_SlotNum, cPlayer & a_Player, const cItem & a_Item) override; protected: - cDispenserEntity * m_Dispenser; + cDropSpenserEntity * m_DropSpenser; } ; -- cgit v1.2.3