X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FInventory.h;h=aaf315cc6bd7cd4608706bb3e99e1a36984f60bd;hb=bdebc167119794e59c26a058d1155a337b1bc768;hp=f80368c5ca6c1666b8ba2c9f9405ec17117d585c;hpb=89aa9fbc77d72e98549bc3aabd7ced7cd8949bdc;p=l2e.git diff --git a/src/common/Inventory.h b/src/common/Inventory.h index f80368c..aaf315c 100644 --- a/src/common/Inventory.h +++ b/src/common/Inventory.h @@ -22,6 +22,7 @@ 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; } @@ -29,6 +30,7 @@ public: int ItemCountAt(int offset) const { return entries[offset].count; } void Sort(); + void SwapEntriesAt(int lhs, int rhs); private: struct Entry {