]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Inventory.h
third column menu hack for cursor
[l2e.git] / src / common / Inventory.h
index f60b9abecb49e71817e5c3fe7a4b74fe3d011f3d..db6c7052e7d908c6b38339efd6d0b3c8a6d9330b 100644 (file)
@@ -28,11 +28,15 @@ public:
        const Item *ItemAt(int offset) const { return entries[offset].item; }
        int ItemCountAt(int offset) const { return entries[offset].count; }
 
+       void Sort();
+       void SwapEntriesAt(int lhs, int rhs);
+
 private:
        struct Entry {
                Entry() : item(0), count(0) { }
                const Item *item;
                Uint8 count;
+               static bool Less(const Entry &, const Entry &);
        };
 
 private: