E G H I M N P S V W

E

east() - Method in class MazeCell
Returns whether or not this cell has its east wall up.
examine() - Method in class MazeCell
Sets the examined flag to true.
examined() - Method in class MazeCell
Returns whether or not this cell has been examined.

G

getCell(int, int) - Method in class Maze
Returns the cell in the maze at the given coordinates.
getCols() - Method in class Maze
Accessor that returns the number of columns in the maze.
getEndCell() - Method in class Maze
Accessor that returns the end cell for the maze.
getNeighbors() - Method in class MazeCell
Gets the neighbors of this cell.
getRows() - Method in class Maze
Accessor that returns the number of rows in the maze.
getStartCell() - Method in class Maze
Accessor that returns the start cell for the maze.

H

hasAllWalls() - Method in class MazeCell
Returns whether or not this cell has all its walls up.

I

init(String[]) - Method in class MazeViewer
Initializes the MazeViewer by initializing the maze according to the input arguments.

M

main(String[]) - Static method in class MazeViewer
Main driver function for the program.
Maze - Class in <Unnamed>
Contains the maze struture, which is just an array of MazeCells.
Maze(int, int) - Constructor for class Maze
Creates a maze that has the given number of rows and columns.
MazeCell - Class in <Unnamed>
The MazeCell class stores information about each individual cell in the maze.
MazeCell() - Constructor for class MazeCell
Sets all the walls to true and initializes the random number generator.
MazeFactory - Class in <Unnamed>
MazeFactory is a Factory Design Pattern that generates a new Maze from a text file.
MazeFactory() - Constructor for class MazeFactory
 
MazeViewer - Class in <Unnamed>
Visualization panel for the maze.
MazeViewer() - Constructor for class MazeViewer
 

N

north() - Method in class MazeCell
Returns whether or not this cell has its north wall up.

P

paint(Graphics) - Method in class MazeViewer
Paints the maze.
printMaze(Maze, String) - Static method in class MazeFactory
Prints the maze to the file.

S

setEndCell(MazeCell) - Method in class Maze
Accessor that sets the end cell for the maze.
setNeighbors(MazeCell, MazeCell, MazeCell, MazeCell) - Method in class MazeCell
Sets the pointers to the neighbors of this cell.
setStartCell(MazeCell) - Method in class Maze
Accessor that sets the start cell for the maze.
setViewer(MazeViewer) - Method in class Maze
Accessor that sets the MazeViewer variable for the maze.
setWalls(boolean, boolean, boolean, boolean) - Method in class MazeCell
Sets whether or not there are walls up to the north, east, south, and west of this cell.
solveBestBinaryMaze() - Method in class Maze
Solves the maze by best first search, with a binary heap.
solveBestThreeMaze() - Method in class Maze
Solves the maze by best first search, with a three heap.
solveBFSMaze() - Method in class Maze
Solves the maze by breadth first search.
solveDFSMaze() - Method in class Maze
Solves the maze by depth first search.
solveMaze(String) - Method in class Maze
Solve maze driver.
solveRandomMaze() - Method in class Maze
Solves the maze by randomly choosing a neighboring cell to explore.
south() - Method in class MazeCell
Returns whether or not this cell has its south wall up.

V

viewMaze(String, String) - Method in class MazeViewer
Calls the appropriate methods to solve the maze.
visit() - Method in class MazeCell
Sets the visited flag to true.
visited() - Method in class MazeCell
Returns whether or not this cell has been visited.
visualize(MazeCell) - Method in class Maze
Tells the viewer to show the maze again, with any changes to cells updated.
visualize(MazeCell) - Method in class MazeViewer
Repaints the panel with the maze.

W

west() - Method in class MazeCell
Returns whether or not this cell has its west wall up.

E G H I M N P S V W