|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
AbstractGrid contains the methods that are common to grid
implementations.act method in the Actor class
to do nothing.
Actor is an entity with a color and direction that can act.ActorWorld is occupied by actors.BoundedGrid is a rectangular grid with a finite number of
rows and columns.Bug is an actor that can move and turn.other for ordering.
Critter is an actor that moves through its world, processing
other actors in some way and then moving to a new location.Location object is "equal to"
this one.
Flower is an actor that darkens over time.Grid provides an interface for a two-dimensional, grid-like
environment containing arbitrary objects.Location object represents the row and column of a location
in a two-dimensional grid.loc, or removes
this critter from its grid if loc is null.
actors.
Rock is an actor that does nothing.UnboundedGrid is a rectangular grid with an unbounded number of rows and
columns.World is the mediator between a grid and the GridWorld GUI.
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||