|
Breakout Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
interface ActiveBreakoutComponent is a BreakoutComponent that acts on it own and has a velocity.
BreakoutComponent
,
DefaultActiveBreakoutComponent
Method Summary | |
void |
act()
actively interact with the world. |
java.awt.Point |
getDirection()
returns a Point representing the direction the component is travelling. |
int |
getTimeBetweenActs()
returns the time in milliseconds between act()s. |
void |
setDirection(java.awt.Point d)
sets the direction of the component. |
Methods inherited from interface breakout.BreakoutComponent |
getCenter, getLocation, getShape, getSize, hitBy, isDead, isTransient, kill, paint, setLocation, setWorld |
Method Detail |
public void act()
public java.awt.Point getDirection()
public void setDirection(java.awt.Point d)
public int getTimeBetweenActs()
|
Breakout Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |