ScummVM API documentation
Pegasus::Inventory Class Reference

Public Member Functions

WeightType getWeightLimit ()
 
void setWeightLimit (WeightType limit)
 
WeightType getWeight ()
 
virtual InventoryResult addItem (Item *item)
 
virtual InventoryResult removeItem (Item *item)
 
virtual InventoryResult removeItem (ItemID id)
 
virtual bool itemInInventory (Item *item)
 
virtual bool itemInInventory (ItemID id)
 
virtual ItemgetItemAt (int32 index)
 
virtual ItemID getItemIDAt (int32 index)
 
virtual ItemfindItemByID (ItemID id)
 
virtual int32 findIndexOf (Item *item)
 
virtual int32 findIndexOf (ItemID id)
 
int32 getNumItems ()
 
virtual void removeAllItems ()
 
void setOwnerID (const ActorID id)
 
ActorID getOwnerID () const
 
uint32 getReferenceCount ()
 

Protected Attributes

WeightType _weightLimit
 
ActorID _ownerID
 
ItemList _inventoryList
 

The documentation for this class was generated from the following file: