Breakout Problem Set Javadocs

breakout
Class PurpleBrick

java.lang.Object
  extended bybreakout.BasicBrick
      extended bybreakout.PurpleBrick
All Implemented Interfaces:
BreakoutComponent, Brick

public class PurpleBrick
extends BasicBrick

Subclasses BasicBrick to be painted differently.


Field Summary
 
Fields inherited from class breakout.BasicBrick
location, size
 
Constructor Summary
PurpleBrick(int width, int height)
           
 
Method Summary
 void paint(java.awt.Graphics g)
          Paints the BasicBrick.
 
Methods inherited from class breakout.BasicBrick
getLocation, getShape, getSize, hit, setLocation, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurpleBrick

public PurpleBrick(int width,
                   int height)
Method Detail

paint

public void paint(java.awt.Graphics g)
Description copied from class: BasicBrick
Paints the BasicBrick.

Specified by:
paint in interface BreakoutComponent
Overrides:
paint in class BasicBrick
Parameters:
g - Graphics object for this ball's coordinate frame(ie, already located where we are).

Breakout Problem Set Javadocs