com.collegeboard.gridworld.actor
Class Critter

java.lang.Object
  extended by com.collegeboard.gridworld.actor.Actor
      extended by com.collegeboard.gridworld.actor.Critter

public class Critter
extends Actor


Constructor Summary
Critter()
           
 
Method Summary
 void act()
           
 ArrayList<Location> getMoveLocations()
           
 ArrayList<Actor> getNeighbors()
           
 void processNeighbors(ArrayList<Actor> neighbors)
           
 Location selectMoveLocation(ArrayList<Location> locs)
           
 
Methods inherited from class com.collegeboard.gridworld.actor.Actor
getColor, getDirection, getGrid, getLocation, moveTo, putSelfInGrid, removeSelfFromGrid, setColor, toString, turnBy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Critter

public Critter()
Method Detail

act

public void act()
Specified by:
act in class Actor

getNeighbors

public ArrayList<Actor> getNeighbors()

processNeighbors

public void processNeighbors(ArrayList<Actor> neighbors)

getMoveLocations

public ArrayList<Location> getMoveLocations()

selectMoveLocation

public Location selectMoveLocation(ArrayList<Location> locs)