|
Breakout Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
interface BreakoutComponent is the basic element of the breakout system. BreakoutComponents are renderable objects that can be added to the game's World.
World
,
DefaultBreakoutComponent
Method Summary | |
java.awt.Point |
getCenter()
returns a point at the center of the component |
java.awt.Point |
getLocation()
returns location of upper-left corner of component |
java.awt.Shape |
getShape()
returns the actual shape of the object. |
java.awt.Dimension |
getSize()
returns the width and height of the bounding rectangle of the component. |
void |
hitBy(BreakoutComponent bc)
the component has been struck by the given component |
boolean |
isDead()
returns dead status of component. |
boolean |
isTransient()
returns true if the component is transient. |
void |
kill()
destroys this component |
void |
paint(java.awt.Graphics g)
renders this component to the screen. |
void |
setLocation(java.awt.Point p)
sets the location of upper-left corner of component |
void |
setWorld(World world)
sets the world the component lives in |
Method Detail |
public java.awt.Point getLocation()
public void setLocation(java.awt.Point p)
public java.awt.Point getCenter()
public java.awt.Dimension getSize()
public java.awt.Shape getShape()
public void kill()
public boolean isDead()
public void setWorld(World world)
public void hitBy(BreakoutComponent bc)
public void paint(java.awt.Graphics g)
public boolean isTransient()
|
Breakout Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |