rle.core.board.item
Class ItemContainerBase

java.lang.Object
  extended by rle.core.vm.PlugInBase
      extended by rle.core.board.item.ItemContainerBase
All Implemented Interfaces:
ItemContainer, PlugIn
Direct Known Subclasses:
Equipment, Inventory

public abstract class ItemContainerBase
extends PlugInBase
implements ItemContainer

Abstract implementation of ItemContainer which leaves the choice of underlying storage to the subclass.


Field Summary
 
Fields inherited from class rle.core.vm.PlugInBase
config, context, parameters
 
Constructor Summary
ItemContainerBase()
           
 
Method Summary
 void addItemContainerListener(ItemContainerListener icl)
           
protected  void fireItemAdded(Item item)
           
protected  void fireItemRemoved(Item item)
           
 boolean isEmpty()
          Whether this container is empty
 void removeItemContainerListener(ItemContainerListener icl)
           
 
Methods inherited from class rle.core.vm.PlugInBase
config, getContext, getParameters, paramMap, setConfig, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface rle.core.board.item.ItemContainer
items
 
Methods inherited from interface rle.core.vm.PlugIn
config, getContext, paramMap, setConfig, setParameters
 

Constructor Detail

ItemContainerBase

public ItemContainerBase()
Method Detail

isEmpty

public boolean isEmpty()
Whether this container is empty

Specified by:
isEmpty in interface ItemContainer

addItemContainerListener

public void addItemContainerListener(ItemContainerListener icl)
Specified by:
addItemContainerListener in interface ItemContainer

removeItemContainerListener

public void removeItemContainerListener(ItemContainerListener icl)
Specified by:
removeItemContainerListener in interface ItemContainer

fireItemAdded

protected void fireItemAdded(Item item)

fireItemRemoved

protected void fireItemRemoved(Item item)