]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Inventory.h
removed lazy fwd headers
[l2e.git] / src / common / Inventory.h
index aaf315cc6bd7cd4608706bb3e99e1a36984f60bd..5e21721d5d1a0804bd5186ef1d2952d2668a80d7 100644 (file)
@@ -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 <SDL.h>
 
@@ -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,6 +47,8 @@ private:
 
 private:
        Entry entries[96];
+       const Item *scenario[64];
+       int scenarioEnd;
 
 };