breakout
Class TransferWall
java.lang.Object
|
+--breakout.DefaultBreakoutComponent
|
+--breakout.Wall
|
+--breakout.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.html,v 1.1 2003/03/10 16:34:48 bvandiver Exp $
- Author:
- benmv@olin.edu
- See Also:
Ball
,
World
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransferWall
public TransferWall(Point location,
Dimension size,
World w)
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.