|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMazeFactory
public class MazeFactory
MazeFactory is a Factory Design Pattern that generates a new Maze from a text file. It currently just exits if it hits a parse error. It also contains a method for writing the maze to a file.
Constructor Summary | |
---|---|
MazeFactory()
|
Method Summary | |
---|---|
static void |
printMaze(Maze maze,
java.lang.String filename)
Prints the maze to the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MazeFactory()
Method Detail |
---|
public static void printMaze(Maze maze, java.lang.String filename) throws java.io.FileNotFoundException, java.io.IOException
maze
- Maze to print to the file..filename
- File to print to.
java.io.FileNotFoundException
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |