-/*
- * Inventory.h
- *
- * Created on: Aug 9, 2012
- * Author: holy
- */
-
#ifndef COMMON_INVENTORY_H_
#define COMMON_INVENTORY_H_
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; }
private:
Entry entries[96];
+ const Item *scenario[64];
+ int scenarioEnd;
};