X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FInventory.h;h=bca2ba82bb3a41a77c8abf9c96a8884c9fcc09a1;hb=4309d259becd96ead792678257e910c03a6b4a3d;hp=aaf315cc6bd7cd4608706bb3e99e1a36984f60bd;hpb=bdebc167119794e59c26a058d1155a337b1bc768;p=l2e.git diff --git a/src/common/Inventory.h b/src/common/Inventory.h index aaf315c..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 @@ -26,6 +21,11 @@ public: 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; } @@ -47,9 +47,11 @@ private: private: Entry entries[96]; + const Item *scenario[64]; + int scenarioEnd; }; } -#endif /* COMMON_INVENTORY_H_ */ +#endif