|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--breakout.WorldEvent
class WorldEvent embodies a change to state of the World as reported to a WorldListener.
World,
WorldListener,
Serialized Form| Field Summary | |
static int |
ADD_BRICK
brick added to world event |
static int |
BALL_TRANSFER
ball transferred out of world event |
static int |
REMOVE_BRICK
brick removed from world event |
| Method Summary | |
static WorldEvent |
createEvent(int action,
BreakoutComponent bc)
factory method for building WorldEvent given a Breakout component. |
int |
getAction()
getter for action |
Point |
getDirection()
getter for direction |
Point |
getLocation()
getter for location |
Dimension |
getSize()
getter for size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ADD_BRICK
public static final int REMOVE_BRICK
public static final int BALL_TRANSFER
| Method Detail |
public int getAction()
public Point getLocation()
public Point getDirection()
ActiveBreakoutComponentpublic Dimension getSize()
public static WorldEvent createEvent(int action,
BreakoutComponent bc)
action - action that happened.bc - Component the action relates to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||