Breakout Problem Set Javadocs

breakout
Class ConfettiBrick

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

public class ConfettiBrick
extends BasicBrick

Subclasses BasicBrick to paint confetti on itself that changes every 20 ticks.


Field Summary
 
Fields inherited from class breakout.BasicBrick
location, size
 
Constructor Summary
ConfettiBrick(int width, int height, int confettiWidth)
           
 
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

ConfettiBrick

public ConfettiBrick(int width,
                     int height,
                     int confettiWidth)
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