}
}
+void Inventory::RemoveAll(const Item *item) {
+ Remove(item, 255);
+}
+
Inventory::Entry *Inventory::FindItem(const Item *item) {
for (int i(0); i < MaxItems(); ++i) {
if (item == ItemAt(i)) {
}
}
+void Inventory::SwapEntriesAt(int lhs, int rhs) {
+ std::swap(entries[lhs], entries[rhs]);
+}
+
}