breakout
Class BallBrick
java.lang.Object
|
+--breakout.DefaultBreakoutComponent
|
+--breakout.BenSimpleBrick
|
+--breakout.BallBrick
- All Implemented Interfaces:
- BreakoutComponent, Brick
- public class BallBrick
- extends BenSimpleBrick
A brick that releases a Ball when destroyed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BallBrick
public BallBrick(Point location,
Dimension size,
World w,
Color c,
int hp)
hitBy
public void hitBy(BreakoutComponent bc)
- Description copied from interface:
BreakoutComponent
- the component has been struck by the given component
- Specified by:
hitBy
in interface BreakoutComponent
- Overrides:
hitBy
in class BenSimpleBrick