|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgizmoball.testing.BreakoutWorldState
public class BreakoutWorldState
Constructor Summary | |
---|---|
BreakoutWorldState()
|
Method Summary | |
---|---|
void |
addGameObject(GameObject g)
Adds a GameObject to the current set of objects in the world, and adds it to balls or gizmos, as appropriate |
java.util.List<GameObject> |
getAllGameObjects()
Returns the set of all game objects in the world at the moment. |
java.util.List<Ball> |
getBalls()
Returns the set of all balls that are in the world. |
java.util.List<Gizmo> |
getGizmos()
Returns the set of all gizmos in the world. |
java.util.List<Trigger> |
getTriggers(GameObject g)
Returns the set of all triggers that are activated when a certain GameObject is triggered. |
void |
removeGameObject(GameObject g)
Removes a GameObject from the current set of objects in the world, also removing it from balls or gizmos, as appropriate |
void |
update(GameObject oldObject,
GameObject newObject)
Replaces the old object with the new object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BreakoutWorldState()
Method Detail |
---|
public void addGameObject(GameObject g)
WorldState
addGameObject
in interface WorldState
public java.util.List<GameObject> getAllGameObjects()
WorldState
getAllGameObjects
in interface WorldState
public java.util.List<Ball> getBalls()
WorldState
getBalls
in interface WorldState
public java.util.List<Gizmo> getGizmos()
WorldState
getGizmos
in interface WorldState
public java.util.List<Trigger> getTriggers(GameObject g)
WorldState
getTriggers
in interface WorldState
public void removeGameObject(GameObject g)
WorldState
removeGameObject
in interface WorldState
public void update(GameObject oldObject, GameObject newObject)
WorldState
update
in interface WorldState
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |