breakout
Interface WorldListener

All Known Implementing Classes:
StudentConnector

public interface WorldListener

interface WorldListener is for objects that want to hear about changes in the world state.

Version:
$Id: WorldListener.html,v 1.1 2003/03/10 16:34:48 bvandiver Exp $
Author:
benmv@olin.edu
See Also:
World, WorldEvent

Method Summary
 void ballLeft(WorldEvent event)
          invoked when a ball leaves the world for another.
 void componentAdded(WorldEvent event)
          invoked when a component is added to the world.
 void componentRemoved(WorldEvent event)
          invoked when a component is removed from the world.
 

Method Detail

componentAdded

public void componentAdded(WorldEvent event)
invoked when a component is added to the world. The event gives basic details about the component.

Parameters:
event - contains basic details of component that was added.

componentRemoved

public void componentRemoved(WorldEvent event)
invoked when a component is removed from the world. The event gives basic details about the component.

Parameters:
event - contains basic details of component that was added.

ballLeft

public void ballLeft(WorldEvent event)
invoked when a ball leaves the world for another. The event describes the ball that just left.

Parameters:
event - contains basic details of ball that left.