]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Inventory.h
Merge branch 'menus'
[l2e.git] / src / common / Inventory.h
index f80368c5ca6c1666b8ba2c9f9405ec17117d585c..e7c569605999170b924f1fc4ad53cd5b62d73717 100644 (file)
@@ -22,13 +22,20 @@ public:
 public:
        bool Add(const Item *, int count = 1);
        void Remove(const Item *, int count = 1);
+       void RemoveAll(const Item *);
 
        int MaxItems() const { return 96; }
 
+       bool AddScenarioItem(const Item *);
+       const Item *ScenarioItemAt(int offset) const { return scenario[offset]; }
+       int NumScenarioItems() const { return scenarioEnd; }
+       int MaxScenarioItems() const { return 64; }
+
        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 {
@@ -45,6 +52,8 @@ private:
 
 private:
        Entry entries[96];
+       const Item *scenario[64];
+       int scenarioEnd;
 
 };