25 #ifndef PEGASUS_ITEMS_INVENTORY_H 26 #define PEGASUS_ITEMS_INVENTORY_H 28 #include "pegasus/types.h" 29 #include "pegasus/items/itemlist.h" 46 WeightType getWeightLimit();
47 void setWeightLimit(WeightType limit);
48 WeightType getWeight();
50 virtual InventoryResult addItem(
Item *item);
51 virtual InventoryResult removeItem(
Item *item);
52 virtual InventoryResult removeItem(ItemID
id);
53 virtual bool itemInInventory(
Item *item);
54 virtual bool itemInInventory(ItemID
id);
55 virtual Item *getItemAt(int32 index);
56 virtual ItemID getItemIDAt(int32 index);
57 virtual Item *findItemByID(ItemID
id);
58 virtual int32 findIndexOf(
Item *item);
59 virtual int32 findIndexOf(ItemID
id);
61 virtual void removeAllItems();
63 void setOwnerID(
const ActorID
id);
64 ActorID getOwnerID()
const;
66 uint32 getReferenceCount() {
return _referenceCount; }
69 WeightType _weightLimit;
74 uint32 _referenceCount;
Definition: itemlist.h:41
Definition: inventory.h:41
Definition: ai_action.h:33