A B C D E F G H I K L M N P R S T U W Z

A

AbstractDisplay - Class in info.gridworld.gui
This class provides common implementation code for drawing objects.
AbstractDisplay() - Constructor for class info.gridworld.gui.AbstractDisplay
 
AbstractGrid<E> - Class in info.gridworld.grid
AbstractGrid contains the methods that are common to grid implementations.
AbstractGrid() - Constructor for class info.gridworld.grid.AbstractGrid
 
act() - Method in class gridWorldTest.BoxBug
Moves to the next location of the square.
act() - Method in class info.gridworld.actor.Actor
Reverses the direction of this actor.
act() - Method in class info.gridworld.actor.Bug
Moves if it can move, turns otherwise.
act() - Method in class info.gridworld.actor.Critter
A critter acts by getting a list of other actors, processing that list, getting locations to move to, selecting one of them, and moving to the selected location.
act() - Method in class info.gridworld.actor.Flower
Causes the color of this flower to darken.
act() - Method in class info.gridworld.actor.Rock
Overrides the act method in the Actor class to do nothing.
Actor - Class in info.gridworld.actor
An Actor is an entity with a color and direction that can act.
Actor() - Constructor for class info.gridworld.actor.Actor
Constructs a blue actor that is facing north.
ActorWorld - Class in info.gridworld.actor
An ActorWorld is occupied by actors.
ActorWorld() - Constructor for class info.gridworld.actor.ActorWorld
Constructs an actor world with a default grid.
ActorWorld(Grid<Actor>) - Constructor for class info.gridworld.actor.ActorWorld
Constructs an actor world with a given grid.
add(Location, Actor) - Method in class info.gridworld.actor.ActorWorld
Adds an actor to this world at a given location.
add(Actor) - Method in class info.gridworld.actor.ActorWorld
Adds an occupant at a random empty location.
add(Location, T) - Method in class info.gridworld.world.World
Adds an occupant at a given location.
addConstructors(JMenu, Collection<Class>) - Method in class info.gridworld.gui.MenuMaker
Adds menu items that call all public constructors of a collection of classes to a menu
addGridClass(String) - Method in class info.gridworld.world.World
Adds a class to be shown in the "Set grid" menu.
addLayoutComponent(String, Component) - Method in class info.gridworld.gui.FormLayout
 
addOccupantClass(String) - Method in class info.gridworld.world.World
Adds a class to be shown when clicking on an empty location.
AHEAD - Static variable in class info.gridworld.grid.Location
The turn angle for making no turn.

A B C D E F G H I K L M N P R S T U W Z