| Package | org.wak.inventory |
| Class | public class Inventory |
| Inheritance | Inventory flash.events.EventDispatcher |
| Method | Defined 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 | ||
|
RemoveItem(pItem:InventoryItem):void
Removes an Item from the inventory
| Inventory | ||
| Inventory | () | constructor |
public function Inventory()
| AddItem | () | method |
public function AddItem(pItem:InventoryItem):voidAdds new item to the inventory
ParameterspItem:InventoryItem |
| GetItems | () | method |
| HasItem | () | method |
public function HasItem(pItem:InventoryItem):BooleanTest if this inventory contains an item.
ParameterspItem:InventoryItem |
Boolean — true if the inventory has pItem
|
| RemoveItem | () | method |
public function RemoveItem(pItem:InventoryItem):voidRemoves an Item from the inventory
ParameterspItem:InventoryItem |