Packageorg.wak.inventory
Classpublic class Inventory
InheritanceInventory Inheritance flash.events.EventDispatcher

Inventory class.



Public Methods
 MethodDefined by
  
Inventory
  
AddItem(pItem:InventoryItem):void
Adds new item to the inventory
Inventory
  
Get an iterator of InventoryItems
Inventory
  
HasItem(pItem:InventoryItem):Boolean
Test if this inventory contains an item.
Inventory
  
Removes an Item from the inventory
Inventory
Constructor detail
Inventory()constructor
public function Inventory()
Method detail
AddItem()method
public function AddItem(pItem:InventoryItem):void

Adds new item to the inventory

Parameters
pItem:InventoryItem
GetItems()method 
public function GetItems():IIterator

Get an iterator of InventoryItems

Returns
IIterator
HasItem()method 
public function HasItem(pItem:InventoryItem):Boolean

Test if this inventory contains an item.

Parameters
pItem:InventoryItem

Returns
Boolean — true if the inventory has pItem
RemoveItem()method 
public function RemoveItem(pItem:InventoryItem):void

Removes an Item from the inventory

Parameters
pItem:InventoryItem