From eb3ed1aec1fb9e4468a7829cabd42572b7554d70 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 19 Aug 2012 11:51:17 +0000 Subject: Another handful of packets rewritten. Also changed cItem::m_ItemID into m_ItemType of type short. Easier handling. m_ItemID kept for compatibility reasons (Lua-interface etc.) git-svn-id: http://mc-server.googlecode.com/svn/trunk@756 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cInventory.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/cInventory.h') diff --git a/source/cInventory.h b/source/cInventory.h index 8bf517769..7513df969 100644 --- a/source/cInventory.h +++ b/source/cInventory.h @@ -44,7 +44,7 @@ public: void SendWholeInventoryToAll(void); cItem* GetSlot( int a_SlotNum ); //tolua_export - cItem* GetSlots() { return m_Slots; } + cItem* GetSlots() const { return m_Slots; } cItem* GetFromHotBar( int a_SlotNum ); //tolua_export cItem & GetEquippedItem(); //tolua_export @@ -56,10 +56,10 @@ public: void SendSlot( int a_SlotNum ); //tolua_export /// Returns how many items of the specified type would fit into the slot range specified - int HowManyCanFit(ENUM_ITEM_ID a_ItemType, short a_ItemDamage, int a_BeginSlot, int a_EndSlot); + int HowManyCanFit(short a_ItemType, short a_ItemDamage, int a_BeginSlot, int a_EndSlot); /// Moves items, fitting them into the slot range specified, up to a_Count items. Returns the number of items moved - int MoveItem(ENUM_ITEM_ID a_ItemType, short a_ItemDamage, int a_Count, int a_BeginSlot, int a_EndSlot); + int MoveItem(short a_ItemType, short a_ItemDamage, int a_Count, int a_BeginSlot, int a_EndSlot); static const unsigned int c_NumSlots = 45; static const unsigned int c_MainSlots = 27; -- cgit v1.2.3