A B C E G H I M P R T U

A

addDot(int, int) - Method in class BotWorld
Add a dot at the given coordinates.
addWall(int, int) - Method in class BotWorld
Create a wall at the given coordinates.
addWall(int, int, char, int) - Method in class BotWorld
Create a wall from the given coordinate (inclusive) extending n spaces in the given direction (for a total of n wall segments).

B

Bot - Class in <Unnamed>
A primitive representation of a Bot, drawing from PacMan and Karel J.
Bot(BotWorld) - Constructor for class Bot
Create a new Bot at the origin (0, 0), facing East, with the specified BotWorld.
BotWorld - Class in <Unnamed>
 
BotWorld() - Constructor for class BotWorld
Create a new BotWorld, with a view and default dots/walls.

C

clearCells() - Method in class BotWorld
Clear the cells in this BotWorld.

E

eatDot() - Method in class Bot
Tries to eat a dot from the world cell at the current location.

G

getDirection() - Method in class Bot
Returns the direction toward which the bot faces.
getDots() - Method in class Bot
Returns the number of dots that the bot has.
getX() - Method in class Bot
Returns the bot's x coordinate.
getY() - Method in class Bot
Returns the bot's y coordinate.

H

hasDot(int, int) - Method in class BotWorld
Return whether there is a dot at the given coordinate.

I

isWall(int, int) - Method in class BotWorld
Find out whether (true) or not (false) there is a wall at the given coordinates.

M

move() - Method in class Bot
Tries to move the bot forward one space.

P

putDot() - Method in class Bot
Tries to put a dot in the world cell at the current location.

R

removeDot(int, int) - Method in class BotWorld
Try to remove a dot from the given coordinates.
removeWall(int, int) - Method in class BotWorld
Remove the wall at the given location, if it exists.

T

turnLeft() - Method in class Bot
Turns the bot counter-clockwise by 90 degrees.
turnRight() - Method in class Bot
Turns the bot clockwise by 90 degrees.

U

updateView() - Method in class BotWorld
Allow an external class to request a view update.

A B C E G H I M P R T U