Class MazeFactory

java.lang.Object
  extended by MazeFactory

public class MazeFactory
extends java.lang.Object

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

MazeFactory

public MazeFactory()
Method Detail

printMaze

public static void printMaze(Maze maze,
                             java.lang.String filename)
                      throws java.io.FileNotFoundException,
                             java.io.IOException
Prints the maze to the file.

Parameters:
maze - Maze to print to the file..
filename - File to print to.
Throws:
java.io.FileNotFoundException
java.io.IOException