|
|||||||||
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 | |
Point |
getCenter()
returns a point at the center of the component |
Point |
getLocation()
returns location of upper-left corner of component |
Shape |
getShape()
returns the actual shape of the object. |
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(Graphics g)
renders this component to the screen. |
void |
setLocation(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 Point getLocation()
public void setLocation(Point p)
public Point getCenter()
public Dimension getSize()
public Shape getShape()
public void kill()
public boolean isDead()
public void setWorld(World world)
public void hitBy(BreakoutComponent bc)
public void paint(Graphics g)
public boolean isTransient()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |