Packageorg.wak.inventory
Classpublic class InventoryManager

This is the manager of the inventory Items of the adventure.



Public Methods
 MethodDefined by
  
InventoryManager
  
Get an InventoryItem by its id.
InventoryManager
  
LoadItemsDefinitions(pXMLItemsDef:XML):void
Loads the Inventory Items's definition, but do not instanciate them .
InventoryManager
Constructor detail
InventoryManager()constructor
public function InventoryManager()
Method detail
GetInventoryItem()method
public function GetInventoryItem(pItemId:String):InventoryItem

Get an InventoryItem by its id.

Parameters
pItemId:String — id of the InventoryItem

Returns
InventoryItem — InventoryItem
LoadItemsDefinitions()method 
public function LoadItemsDefinitions(pXMLItemsDef:XML):void

Loads the Inventory Items's definition, but do not instanciate them .

Parameters
pXMLItemsDef:XML — a XML object with the definition of the Inventory Items.