|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.collegeboard.gridworld.gui.AbstractWorld<Actor>
com.collegeboard.gridworld.actor.ActorWorld
public class ActorWorld
This class manages the world that the actors inhabit, including the display frame and the choices for actors and grids in the frame.
copyright© 2005 Cay S. Horstmann (http://horstmann.com)
| Constructor Summary | |
|---|---|
ActorWorld()
|
|
ActorWorld(Grid<Actor> grid)
|
|
| Method Summary | |
|---|---|
void |
add(Location loc,
Actor occupant)
Adds an occupant at a given location |
void |
step()
This method is called when the user clicks on the step button, or when run mode has been activated by clicking the run button. |
| Methods inherited from class com.collegeboard.gridworld.gui.AbstractWorld |
|---|
add, addGridClass, addOccupantClass, getGrid, getGridClasses, getMessage, getOccupantClasses, locationClicked, setGrid, setMessage, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActorWorld()
public ActorWorld(Grid<Actor> grid)
| Method Detail |
|---|
public void step()
World
step in interface World<Actor>step in class com.collegeboard.gridworld.gui.AbstractWorld<Actor>
public void add(Location loc,
Actor occupant)
World
add in interface World<Actor>add in class com.collegeboard.gridworld.gui.AbstractWorld<Actor>loc - the locationoccupant - the occupant to add
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||