How can we help?

You can also find more resources in our Help Center.

21 terms

AP Gridworld Case Study Classes

STUDY
PLAY
Location.NORTH
0
Location.EAST
90
Location.SOUTH
180
Location.WEST
270
Location.NORTHEAST
45
Location.SOUTHEAST
135
Location.SOUTHWEST
225
Location.NORTHWEST
315
Location.LEFT
-90
Location.RIGHT
90
Location.HALF_LEFT
-45
Location.HALF_RIGHT
45
Location.FULL_CIRCLE
360
Location.HALF_CIRCLE
180
Location.AHEAD
0
Location class
Location
getRow
getCol
getAdjacentLocation
getDirectionToward
equals
hashCode
compareTo
toString
Actor class
Actor
getColor
setColor
getDirection
setDirection
getGrid
getLocation
putSelfInGrid
removeSelfFromGrid
moveTo
act
toString
Bug class
Bug
Bug
act
turn
move
canMove
BoxBug class
BoxBug
act
Critter class
act
getActors
processActors
getMoveLocations
selectMoveLocation
makeMove
ChameleonCritter
processActors
makeMove