|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.collegeboard.gridworld.actor.Actor
com.collegeboard.gridworld.actor.Critter
public class Critter
| 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 |
|---|
public Critter()
| Method Detail |
|---|
public void act()
act in class Actorpublic ArrayList<Actor> getNeighbors()
public void processNeighbors(ArrayList<Actor> neighbors)
public ArrayList<Location> getMoveLocations()
public Location selectMoveLocation(ArrayList<Location> locs)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||