Uses of Class
info.gridworld.actor.Actor

Packages that use Actor
gridWorldTest   
info.gridworld.actor   
 

Uses of Actor in gridWorldTest
 

Subclasses of Actor in gridWorldTest
 class BoxBug
          A BoxBug traces out a square "box" of a given size.
 class ChameleonCritter
          A ChameleonCritter takes on the color of neighboring actors as it moves through the grid.
 class CrabCritter
          A CrabCritter looks at a limited set of neighbors when it eats and moves.
 

Methods in gridWorldTest that return types with arguments of type Actor
 java.util.ArrayList<Actor> CrabCritter.getActors()
          A crab gets the actors in the three locations immediately in front, to its front-right and to its front-left
 

Method parameters in gridWorldTest with type arguments of type Actor
 void ChameleonCritter.processActors(java.util.ArrayList<Actor> actors)
          Randomly selects a neighbor and changes this critter's color to be the same as that neighbor's.
 

Uses of Actor in info.gridworld.actor
 

Subclasses of Actor in info.gridworld.actor
 class Bug
          A Bug is an actor that can move and turn.
 class Critter
          A Critter is an actor that moves through its world, processing other actors in some way and then moving to a new location.
 class Flower
          A Flower is an actor that darkens over time.
 class Rock
          A Rock is an actor that does nothing.
 

Methods in info.gridworld.actor that return Actor
 Actor ActorWorld.remove(Location loc)
          Removes an actor from this world.
 

Methods in info.gridworld.actor that return types with arguments of type Actor
 java.util.ArrayList<Actor> Critter.getActors()
          Gets the actors for processing.
 Grid<Actor> Actor.getGrid()
          Gets the grid in which this actor is located.
 

Methods in info.gridworld.actor with parameters of type Actor
 void ActorWorld.add(Actor occupant)
          Adds an occupant at a random empty location.
 void ActorWorld.add(Location loc, Actor occupant)
          Adds an actor to this world at a given location.
 

Method parameters in info.gridworld.actor with type arguments of type Actor
 void Critter.processActors(java.util.ArrayList<Actor> actors)
          Processes the elements of actors.
 void Actor.putSelfInGrid(Grid<Actor> gr, Location loc)
          Puts this actor into a grid.
 

Constructor parameters in info.gridworld.actor with type arguments of type Actor
ActorWorld(Grid<Actor> grid)
          Constructs an actor world with a given grid.