|
Breakout Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbreakout.WorldEvent
class WorldEvent embodies a change to state of the World as reported to a WorldListener.
World
,
WorldListener
,
Serialized FormField 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 |
java.awt.Point |
getDirection()
getter for direction |
java.awt.Point |
getLocation()
getter for location |
java.awt.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 java.awt.Point getLocation()
public java.awt.Point getDirection()
ActiveBreakoutComponent
public java.awt.Dimension getSize()
public static WorldEvent createEvent(int action, BreakoutComponent bc)
action
- action that happened.bc
- Component the action relates to.
|
Breakout Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |