be.saltwater.jaqel.maze.loaders
Interface MazeLoader
- All Known Implementing Classes:
- XMLMazeLoader
- public interface MazeLoader
Provides extensible support for maze file types. Just implement this interface and everyone using the MazeLoader interface will be able to use your file format. At the moment, the only available implementation is XMLMazeLoader.
- Author:
- Bruno Windels
- See Also:
Maze,
TileSetLoader
|
Method Summary |
Maze |
load(java.lang.String filename)
Loads a maze from a given document in the format of the implementing class. |
load
public Maze load(java.lang.String filename)
throws TileSetLoadException,
java.io.IOException,
java.text.ParseException
- Loads a maze from a given document in the format of the implementing class. Uses a prefered TileSetLoader for the implementation, for example XMLMazeLoader uses XMLTileSetLoader here.
- Parameters:
filename - The filename of the file that is to be loaded.
- Throws:
TileSetLoadException - When the used TileSetLoader couldn't load the tileset completly or another problem arose when trying to load the tileset.
java.io.IOException - When some file could not be read.
java.text.ParseException - When the file has the wrong format.