Title: Maze
Description: An abstract class that defines the maze interface
Copyright: Copyright (c) 2002
Company:
| Field Detail |
MazeWindow window
Strategy strategy
Thread maze
| Method Detail |
public static Maze generateNewMaze(int rows,
int cols,
MazeWindow window)
rows - Number of rows of the new mazecols - Number of coloumns of the new mazewindow - The MazeWindow that will draw this new maze to the user
public abstract Status getStatus(int x,
int y)
x - The x coordinate of the cell in the mazey - The y coordinate of the cell in the maze
public abstract void setStatus(int x,
int y,
Status s)
x - The x coordinate of the cell in the mazey - The y coordinate of the cell in the mazes - The current status of the cell in question
public abstract boolean isThereAWall(int x1,
int y1,
int x2,
int y2)
x1 - x2 - y1 - y2 -
public abstract void removeWall(int x1,
int y1,
int x2,
int y2)
x1 - y1 - x2 - y2 -
public abstract void putWall(int x1,
int y1,
int x2,
int y2)
x1 - y1 - x2 - y2 - public abstract void clear()
public abstract void setStart(int x,
int y)
x - y -
public abstract void setEnd(int x,
int y)
x - y - public abstract int startX()
public abstract int startY()
public abstract int endX()
public abstract int endY()
public abstract int rows()
public abstract int cols()
public synchronized void pause(int ms)
ms - public synchronized void run()
public synchronized void start()
public synchronized void stop()