summaryrefslogtreecommitdiffstats
path: root/source/cInventory.h
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-01 05:55:17 +0100
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-01 05:55:17 +0100
commitd7068b35a85f0c0248a5533240087747d02e1a17 (patch)
tree7d40a34bdda09c0fbccc9e8052043709cfd88d7b /source/cInventory.h
parentChests, furnaces and dispensers face the correct way now. (diff)
downloadcuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar
cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar.gz
cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar.bz2
cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar.lz
cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar.xz
cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar.zst
cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.zip
Diffstat (limited to '')
-rw-r--r--source/cInventory.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/cInventory.h b/source/cInventory.h
index 7d98af853..849cfb440 100644
--- a/source/cInventory.h
+++ b/source/cInventory.h
@@ -12,10 +12,9 @@ namespace Json
class cItem;
class cClientHandle;
class cPlayer;
-class cPacket_WindowClick;
+class cPacket;
class cPacket_EntityEquipment;
-class cInventory //tolua_export
- : public cWindowOwner
+class cInventory //tolua_export
{ //tolua_export
public:
cInventory(cPlayer* a_Owner);
@@ -28,7 +27,6 @@ public:
bool AddItem( cItem & a_Item ); //tolua_export
bool RemoveItem( cItem & a_Item ); //tolua_export
- void DrawInventory();
void SaveToJson(Json::Value & a_Value);
bool LoadFromJson(Json::Value & a_Value);
@@ -42,7 +40,7 @@ public:
cItem & GetEquippedItem(); //tolua_export
void SetEquippedSlot( int a_SlotNum ); //tolua_export
- void Clicked( cPacket_WindowClick* a_ClickPacket );
+ virtual void Clicked( cPacket* a_ClickPacket ) = 0;
void SendSlot( int a_SlotNum ); //tolua_export
@@ -56,7 +54,8 @@ public:
static const unsigned int c_ArmorOffset = 5;
static const unsigned int c_MainOffset = 9;
static const unsigned int c_HotOffset = 36;
-private:
+
+protected:
bool AddToBar( cItem & a_Item, const int a_Offset, const int a_Size, bool* a_bChangedSlots, int a_Mode = 0 );
cItem* m_Slots;