X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FInventory.h;h=bca2ba82bb3a41a77c8abf9c96a8884c9fcc09a1;hb=7b3710c47f24e64e0d01378a4564730bcb2f6ef2;hp=db6c7052e7d908c6b38339efd6d0b3c8a6d9330b;hpb=9c03a930498206bfa05de06ed838a74c8dd84a24;p=l2e.git diff --git a/src/common/Inventory.h b/src/common/Inventory.h index db6c705..bca2ba8 100644 --- a/src/common/Inventory.h +++ b/src/common/Inventory.h @@ -1,14 +1,9 @@ -/* - * Inventory.h - * - * Created on: Aug 9, 2012 - * Author: holy - */ - #ifndef COMMON_INVENTORY_H_ #define COMMON_INVENTORY_H_ -#include "fwd.h" +namespace common { + class Item; +} #include @@ -22,9 +17,15 @@ 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; } @@ -46,9 +47,11 @@ private: private: Entry entries[96]; + const Item *scenario[64]; + int scenarioEnd; }; } -#endif /* COMMON_INVENTORY_H_ */ +#endif