|
|||||||
PREV NEXT | FRAMES NO FRAMES |
BoundedEnv
class models a bounded, two-dimensional,
grid-like environment containing locatable objects.other
for ordering.
Direction
class encapsulates the notion of a compass
direction such as North, East, South, West.Direction
object facing North.
Direction
object.
Direction
object.
DisplayMap
is a collection that maps environment
object classes to objects that know how to display them.EnvDisplay
interface describes the methods needed
by all EnvDisplay
objects.Environment
provides an interface for a two-dimensional,
grid-like environment containing locatable objects.Direction
object
is "equal to" this one.
Location
object is
"equal to" this one.
Locatable
is an interface that guarantees that an object
knows its location and returns it when the location
method is called.Location
object represents the row and column of a
location in a two-dimensional grid.Location
object.
Direction
object.
SquareEnvironment
is an abstract class that implements
only the navigational methods in the Environment
interface.SquareEnvironment
object in which cells
have four adjacent neighbors -- those with which they share sides.
SquareEnvironment
object in which cells
have four or eight adjacent neighbors, depending on the value
of the includeDiagonalNeighbors
parameter.
Direction
object.
deg
degrees to the left of this
Direction
object.
Direction
object.
deg
degrees to the right of this
Direction
object.
|
|||||||
PREV NEXT | FRAMES NO FRAMES |