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.


Constructor Summary
BallBrick(Point location, Dimension size, World w, Color c, int hp)
           
 
Method Summary
 void hitBy(BreakoutComponent bc)
          the component has been struck by the given component
 
Methods inherited from class breakout.BenSimpleBrick
paint
 
Methods inherited from class breakout.DefaultBreakoutComponent
getCenter, getLocation, getShape, getSize, isDead, isTransient, kill, setLocation, setWorld
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface breakout.BreakoutComponent
getCenter, getLocation, getShape, getSize, isDead, isTransient, kill, setLocation, setWorld
 

Constructor Detail

BallBrick

public BallBrick(Point location,
                 Dimension size,
                 World w,
                 Color c,
                 int hp)
Method Detail

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