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

G

get(Location) - Method in class info.gridworld.grid.BoundedGrid
 
get(Location) - Method in interface info.gridworld.grid.Grid
Returns the object at a given location in this grid.
get(Location) - Method in class info.gridworld.grid.UnboundedGrid
 
getActors() - Method in class gridWorldTest.CrabCritter
A crab gets the actors in the three locations immediately in front, to its front-right and to its front-left
getActors() - Method in class info.gridworld.actor.Critter
Gets the actors for processing.
getAdjacentLocation(int) - Method in class info.gridworld.grid.Location
Gets the adjacent location in any one of the eight compass directions.
getCol() - Method in class info.gridworld.grid.Location
Gets the column coordinate.
getColor() - Method in class info.gridworld.actor.Actor
Gets the color of this actor.
getCurrentLocation() - Method in class info.gridworld.gui.GridPanel
Gets the current location.
getCustomEditor() - Method in class info.gridworld.gui.ColorEditor
 
getCustomEditor() - Method in class info.gridworld.gui.LocationEditor
 
getDirection() - Method in class info.gridworld.actor.Actor
Gets the current direction of this actor.
getDirectionToward(Location) - Method in class info.gridworld.grid.Location
Returns the direction from this location toward another location.
getEmptyAdjacentLocations(Location) - Method in class info.gridworld.grid.AbstractGrid
 
getEmptyAdjacentLocations(Location) - Method in interface info.gridworld.grid.Grid
Gets the valid empty locations adjacent to a given location in all eight compass directions (north, northeast, east, southeast, south, southwest, west, and northwest).
getGrid() - Method in class info.gridworld.actor.Actor
Gets the grid in which this actor is located.
getGrid() - Method in class info.gridworld.world.World
Gets the grid managed by this world.
getGridClasses() - Method in class info.gridworld.world.World
Gets a set of grid classes that should be used by the world frame for this world.
getIcon(Class, int, int) - Method in class info.gridworld.gui.DisplayMap
Gets an icon to display a class in a menu
getLocation() - Method in class info.gridworld.actor.Actor
Gets the location of this actor.
getLocationsInDirections(int[]) - Method in class gridWorldTest.CrabCritter
Finds the valid adjacent locations of this critter in different directions.
getMessage() - Method in class info.gridworld.world.World
Gets the message to be displayed in the world frame above the grid.
getMinimumSize() - Method in class info.gridworld.gui.GridPanel
Returns the minimum size of the display, for use by layout manager.
getMoveLocations() - Method in class gridWorldTest.CrabCritter
 
getMoveLocations() - Method in class info.gridworld.actor.Critter
Gets a list of possible locations for the next move.
getNeighbors(Location) - Method in class info.gridworld.grid.AbstractGrid
 
getNeighbors(Location) - Method in interface info.gridworld.grid.Grid
Gets the neighboring occupants in all eight compass directions (north, northeast, east, southeast, south, southwest, west, and northwest).
getNumCols() - Method in class info.gridworld.grid.BoundedGrid
 
getNumCols() - Method in interface info.gridworld.grid.Grid
Returns the number of columns in this grid.
getNumCols() - Method in class info.gridworld.grid.UnboundedGrid
 
getNumRows() - Method in class info.gridworld.grid.BoundedGrid
 
getNumRows() - Method in interface info.gridworld.grid.Grid
Returns the number of rows in this grid.
getNumRows() - Method in class info.gridworld.grid.UnboundedGrid
 
getOccupantClasses() - Method in class info.gridworld.world.World
Gets a set of occupant classes that should be used by the world frame for this world.
getOccupiedAdjacentLocations(Location) - Method in class info.gridworld.grid.AbstractGrid
 
getOccupiedAdjacentLocations(Location) - Method in interface info.gridworld.grid.Grid
Gets the valid occupied locations adjacent to a given location in all eight compass directions (north, northeast, east, southeast, south, southwest, west, and northwest).
getOccupiedLocations() - Method in class info.gridworld.grid.BoundedGrid
 
getOccupiedLocations() - Method in interface info.gridworld.grid.Grid
Gets the locations in this grid that contain objects.
getOccupiedLocations() - Method in class info.gridworld.grid.UnboundedGrid
 
getPreferredScrollableViewportSize() - Method in class info.gridworld.gui.GridPanel
 
getPreferredSize() - Method in class info.gridworld.gui.GridPanel
Returns the desired size of the display, for use by layout manager.
getProperty(Object, String) - Static method in class info.gridworld.gui.AbstractDisplay
 
getRandomEmptyLocation() - Method in class info.gridworld.world.World
Gets a random empty location in this world.
getRow() - Method in class info.gridworld.grid.Location
Gets the row coordinate.
getScrollableBlockIncrement(Rectangle, int, int) - Method in class info.gridworld.gui.GridPanel
 
getScrollableTracksViewportHeight() - Method in class info.gridworld.gui.GridPanel
 
getScrollableTracksViewportWidth() - Method in class info.gridworld.gui.GridPanel
 
getScrollableUnitIncrement(Rectangle, int, int) - Method in class info.gridworld.gui.GridPanel
 
getToolTipText(MouseEvent) - Method in class info.gridworld.gui.GridPanel
Given a MouseEvent, determine what text to place in the floating tool tip when the the mouse hovers over this location.
getValidAdjacentLocations(Location) - Method in class info.gridworld.grid.AbstractGrid
 
getValidAdjacentLocations(Location) - Method in interface info.gridworld.grid.Grid
Gets the valid locations adjacent to a given location in all eight compass directions (north, northeast, east, southeast, south, southwest, west, and northwest).
getValue() - Method in class info.gridworld.gui.ColorEditor
 
getValue() - Method in class info.gridworld.gui.LocationEditor
 
getViewPosition() - Method in class info.gridworld.gui.PseudoInfiniteViewport
Returns current view position (upper left).
getViewSize() - Method in class info.gridworld.gui.PseudoInfiniteViewport
Returns current view size.
getWorld() - Method in class info.gridworld.gui.WorldFrame
Gets the world that this frame displays
Grid<E> - Interface in info.gridworld.grid
Grid provides an interface for a two-dimensional, grid-like environment containing arbitrary objects.
GridPanel - Class in info.gridworld.gui
A GridPanel is a panel containing a graphical display of the grid occupants.
GridPanel(DisplayMap, ResourceBundle) - Constructor for class info.gridworld.gui.GridPanel
Construct a new GridPanel object with no grid.
gridWorldTest - package gridWorldTest
 
GUIController<T> - Class in info.gridworld.gui
The GUIController controls the behavior in a WorldFrame.
GUIController(WorldFrame<T>, GridPanel, DisplayMap, ResourceBundle) - Constructor for class info.gridworld.gui.GUIController
Creates a new controller tied to the specified display and gui frame.

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