mud.common.objects
Class Inventory

java.lang.Object
  extended by mud.common.objects.Inventory

public class Inventory
extends java.lang.Object


Constructor Summary
Inventory()
           
 
Method Summary
 void addAll(Inventory inventory)
           
 void addItem(Item i)
           
 void addListener(InventoryListener il)
           
 void clear()
           
 Item getItemById(int itemId)
           
 java.util.List<Item> getItems()
           
 boolean isEmpty()
           
 Item removeItem(int itemId)
           
 Item removeItem(Item i)
           
 void removeListener(InventoryListener il)
           
 XmlElement toXml()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Inventory

public Inventory()
Method Detail

addListener

public void addListener(InventoryListener il)

removeListener

public void removeListener(InventoryListener il)

isEmpty

public boolean isEmpty()

clear

public void clear()

addAll

public void addAll(Inventory inventory)

addItem

public void addItem(Item i)

removeItem

public Item removeItem(int itemId)

removeItem

public Item removeItem(Item i)

getItems

public java.util.List<Item> getItems()

getItemById

public Item getItemById(int itemId)

toXml

public XmlElement toXml()