breakout
Class KillerWall
java.lang.Object
|
+--breakout.DefaultBreakoutComponent
|
+--breakout.Wall
|
+--breakout.KillerWall
- All Implemented Interfaces:
- BreakoutComponent
- public class KillerWall
- extends Wall
A KillerWall kills anything that hits it. It is used as the
bottom (SOUTH) wall in the World.
- Version:
- $Id: KillerWall.html,v 1.1 2003/03/10 16:34:48 bvandiver Exp $
- Author:
- benmv@olin.edu
- See Also:
World
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KillerWall
public KillerWall(Point location,
Dimension size,
World w)
hitBy
public void hitBy(BreakoutComponent bc)
- kills any component that hits it.
- Specified by:
hitBy
in interface BreakoutComponent
- Overrides:
hitBy
in class Wall
- Parameters:
bc
- the component about to die