|
Breakout Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the contract for all BreakoutComponent objects.
Method Summary | |
java.awt.Point |
getLocation()
Provides a way to get the location of this BreakoutComponent. |
java.awt.Shape |
getShape()
Provides a way to get the java.awt.Shape of this BreakoutComponent, generally for intersection and rebound checks. |
java.awt.Dimension |
getSize()
Provides a way to get the size of this BreakoutComponent. |
boolean |
hit(BreakoutComponent bc)
Used in the rebound phase of a World tick. |
void |
paint(java.awt.Graphics g)
Provides a way to paint this BreakoutComponent. |
void |
setLocation(java.awt.Point p)
Provides a way to set the location of this BreakoutComponent. |
void |
update()
Called by World at the beginning of evey tick on all BreakoutComponents in a Board. |
Method Detail |
public void setLocation(java.awt.Point p)
public java.awt.Point getLocation()
public java.awt.Dimension getSize()
public void update()
public boolean hit(BreakoutComponent bc)
bc
- the BreakoutComponent that's doing the hitting.
true
public java.awt.Shape getShape()
public void paint(java.awt.Graphics g)
BoardPanel
|
Breakout Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |