Breakout Problem Set Javadocs

breakout
Interface WorldListener


public interface WorldListener

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

Version:
$Id: WorldListener.java,v 1.2 2004/03/26 20:39:33 gus 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.

Breakout Problem Set Javadocs