Breakout Problem Set Javadocs

breakout
Class TransferWall

java.lang.Object
  extended bybreakout.DefaultBreakoutComponent
      extended bybreakout.Wall
          extended bybreakout.TransferWall
All Implemented Interfaces:
BreakoutComponent

public class TransferWall
extends Wall

A TransferWall indicates that Balls that strike it should leave the World for another. Used by the World in a network game as the top (NORTH) wall.

Version:
$Id: TransferWall.java,v 1.2 2004/03/26 20:39:33 gus Exp $
Author:
benmv@olin.edu
See Also:
Ball, World

Constructor Summary
TransferWall(java.awt.Point location, java.awt.Dimension size, World w)
           
 
Method Summary
 void hitBy(BreakoutComponent bc)
          Balls that strike this are indicated to the world as leaving.
 
Methods inherited from class breakout.Wall
kill, paint
 
Methods inherited from class breakout.DefaultBreakoutComponent
getCenter, getLocation, getShape, getSize, isDead, isTransient, setLocation, setWorld
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferWall

public TransferWall(java.awt.Point location,
                    java.awt.Dimension size,
                    World w)
Method Detail

hitBy

public void hitBy(BreakoutComponent bc)
Balls that strike this are indicated to the world as leaving.

Specified by:
hitBy in interface BreakoutComponent
Overrides:
hitBy in class Wall
Parameters:
bc - BreakoutComponent that will be leaving if it's a Ball.

Breakout Problem Set Javadocs