diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-12 05:46:01 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-12 05:46:01 +0100 |
commit | 43e684071933adef93040e8d4b830d5c6b71cf9a (patch) | |
tree | 014e5300feb1cdbbb8f24e4e42594eeb841f0be2 /source/Inventory.h | |
parent | Fixed rclk in doublechests (diff) | |
download | cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.gz cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.bz2 cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.lz cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.xz cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.zst cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Inventory.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/source/Inventory.h b/source/Inventory.h index 0ac839ac2..82ecb97f9 100644 --- a/source/Inventory.h +++ b/source/Inventory.h @@ -19,35 +19,35 @@ class cPlayer; -class cInventory //tolua_export -{ //tolua_export +class cInventory // tolua_export +{ // tolua_export public: cInventory(cPlayer & a_Owner); ~cInventory(); - void Clear(); //tolua_export + void Clear(); // tolua_export cItem* GetSlotsForType( int a_Type ); int GetSlotCountForType( int a_Type ); - bool AddItem( cItem & a_Item ); //tolua_export - bool AddItemAnyAmount( cItem & a_Item ); //tolua_export - bool RemoveItem( cItem & a_Item ); //tolua_export + bool AddItem( cItem & a_Item ); // tolua_export + bool AddItemAnyAmount( cItem & a_Item ); // tolua_export + bool RemoveItem( cItem & a_Item ); // tolua_export void SaveToJson(Json::Value & a_Value); bool LoadFromJson(Json::Value & a_Value); void SendWholeInventory(cClientHandle & a_Client); - cItem * GetSlot(int a_SlotNum ); //tolua_export + cItem * GetSlot(int a_SlotNum ); // tolua_export cItem * GetSlots(void) { return m_Slots; } const cItem * GetSlots(void) const { return m_Slots; } - cItem * GetFromHotBar(int a_HotBarSlotNum); //tolua_export + cItem * GetFromHotBar(int a_HotBarSlotNum); // tolua_export - cItem & GetEquippedItem(void); //tolua_export + cItem & GetEquippedItem(void); // tolua_export const cItem & GetEquippedItem(void) const; - void SetEquippedSlot(int a_SlotNum); //tolua_export - short GetEquippedSlot(void) { return m_EquippedSlot; } //tolua_export + void SetEquippedSlot(int a_SlotNum); // tolua_export + short GetEquippedSlot(void) { return m_EquippedSlot; } // tolua_export // tolua_begin const cItem & GetEquippedHelmet (void) const { return m_Slots[c_ArmorOffset]; } @@ -56,7 +56,7 @@ public: const cItem & GetEquippedBoots (void) const { return m_Slots[c_ArmorOffset + 3]; } // tolua_end - void SendSlot( int a_SlotNum ); //tolua_export + void SendSlot( int a_SlotNum ); // tolua_export /// Returns how many items of the specified type would fit into the slot range specified int HowManyCanFit(short a_ItemType, short a_ItemDamage, int a_BeginSlot, int a_EndSlot); @@ -89,7 +89,7 @@ protected: short m_EquippedSlot; cPlayer & m_Owner; -}; //tolua_export +}; // tolua_export |