wyvern.lib.event
Interface ContainerChangeListener

All Superinterfaces:
java.util.EventListener
All Known Subinterfaces:
ObjectTracker
All Known Implementing Classes:
BearTrap, ContainerChangeAdapter, MovableLightSource, MovableSoundSource, QuestItem

public interface ContainerChangeListener
extends java.util.EventListener

Interface that supports tracking an object as it moves into and out of containers (bags and inventories).

You receive the notifications after the object has finished its move successfully. If the object is transferring directly into another container, you'll receive a targetLeftContainer() followed by a targetEnteredContainer().

Version:
1.0, Oct 28, 2003
Author:
Steve Yegge

Method Summary
 void targetEnteredContainer(ContainerChangeEvent event)
          Target object was added to a bag or inventory.
 void targetLeftContainer(ContainerChangeEvent event)
          Target object was removed from a bag or inventory.
 

Method Detail

targetEnteredContainer

public void targetEnteredContainer(ContainerChangeEvent event)
Target object was added to a bag or inventory.


targetLeftContainer

public void targetLeftContainer(ContainerChangeEvent event)
Target object was removed from a bag or inventory.