A B C D E G H I L M P R S T U W

A

add(Bot) - Method in class BotWorld
Add the given Bot to the World.
addDot(int, int) - Method in class BotWorld
Add a dot at the given coordinates.
addDot() - Method in class BotWorld.Cell
Add a dot to this Cell.
addDots(int, int, int) - Method in class BotWorld
Add the specified number of dots at the given coordinates.
addDots(int) - Method in class BotWorld.Cell
Add the specified number of dots to this Cell.
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.
Bot(BotWorld, int, int) - Constructor for class Bot
Create a new Bot at the specified coordinates, facing East, attached to the specified BotWorld.
Bot(BotWorld, int, int, char) - Constructor for class Bot
Create a new Bot at the specified coordinates, facing the specified direction, and attached to the given BotWorld.
BotWorld - Class in <Unnamed>
 
BotWorld() - Constructor for class BotWorld
Create a new BotWorld, with a view and default dots/walls.
BotWorld(boolean) - Constructor for class BotWorld
Create a new BotWorld, with dots and a view if the argument is true.
BotWorld(boolean, boolean) - Constructor for class BotWorld
Create a new BotWorld, with a view and default set as specified.
BotWorld(boolean, String) - Constructor for class BotWorld
Create a new BotWorld, optionally with a view and initially populated with objects from a file.
BotWorld(String) - Constructor for class BotWorld
Create a new BotWorld with a view, initially populated from a file.
BotWorld(boolean, boolean, String) - Constructor for class BotWorld
Create a new BotWorld, optionally with a view, default set, and additional objects from a file.
BotWorld(boolean, boolean, String, int, int) - Constructor for class BotWorld
Creates a new BotWorld, optionally with a view, default set, additional objects from a file, and the given width and height.
BotWorld.Cell - Class in <Unnamed>
A class to represent an individual cell in (this) BotWorld, holding such attributes as number of dots present and whether the cell is a wall.
BotWorld.Cell(int, int) - Constructor for class BotWorld.Cell
Create a new Cell at the given location in this BotWorld

C

clear() - Method in class BotWorld.Cell
Clear the contents of this cell: no dots, no walls.
clearCells() - Method in class BotWorld
Clear the cells in this BotWorld.

D

DIRS - Static variable in class BotWorld
Available directions.

E

eatDot() - Method in class Bot
Tries to eat a dot from the world cell at the current location.
ensureCells(int, int, int, int) - Method in class BotWorld
Make sure there are cells created within the given range.

G

getCellKey(int, int) - Static method in class BotWorld
Primarily for internal use.
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.
getDots() - Method in class BotWorld.Cell
Get the number of dots in this Cell.
getKey() - Method in class BotWorld.Cell
Get the unique coordinate-based key for this Cell.
getNeighbor(char) - Method in class BotWorld.Cell
Return this Cell's neighbor in the given direction, or null if no neighboring Cell object has been created.
getSleepDelay() - Static method in class BotWorld
Return the current sleep delay.
getX() - Method in class Bot
Returns the bot's x coordinate.
getX() - Method in class BotWorld.Cell
Get this Cell's x coordinate.
getY() - Method in class Bot
Returns the bot's y coordinate.
getY() - Method in class BotWorld.Cell
Get this Cell's y coordinate.

H

hadWallUpdate() - Method in class BotWorld.Cell
Find out whether this Cell's wall status (or that of one of its neighbors) has been updated since last checked (and therefore if its CellGraphic should update the connections to neighbors, for drawing).
hasDot() - Method in class BotWorld.Cell
Find out whether this Cell has any dots.
hasDot(int, int) - Method in class BotWorld
Return whether there is a dot at the given coordinate.

I

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

L

loadFile(String, boolean, boolean, Class<?>) - Method in class BotWorld
Load the given file into this BotWorld, creating walls/dots/&c as appropriate, using a BotFileReader.
loadFile(String) - Method in class BotWorld
Load the given file into this BotWorld, creating walls/dots/&c as appropriate, using a BotFileReader.

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

remove(Bot) - Method in class BotWorld
Remove the given Bot from the world.
removeDot() - Method in class BotWorld.Cell
Remove a dot from this Cell, assuming there is one to remove.
removeDot(int, int) - Method in class BotWorld
Try to remove a dot from the given coordinates.
removeView() - Method in class BotWorld
Remove this BotWorld's view, if it has one.
removeWall(int, int) - Method in class BotWorld
Remove the wall at the given location, if it exists.

S

safeGet(int, int) - Method in class BotWorld
 
safeSleep(int) - Static method in class BotWorld
Primarily for internal use.
setSleepDelay(int) - Static method in class BotWorld
Set the sleep delay (in miliseconds) - that is, how long the BotWorld pauses after each display update.
setWall(boolean) - Method in class BotWorld.Cell
Set whether this Cell is a wall (is impassable).
setWallUpdate() - Method in class BotWorld.Cell
Set this Cell's wallUpdate status to true.

T

toString() - Method in class Bot
Returns a String description of the Bot, for example: "Bot at (3, 8) facing w with 5 dots."
toString() - Method in class BotWorld.Cell
Return a brief String description, like: Cell at (3, 5) with 4 dots and 1 thing
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.

W

world - Variable in class Bot
The world the bot lives in (should never be null).

A B C D E G H I L M P R S T U W