default_args in project Display.main() if argument is empty ignore it if file read fails, exit add a WHEREWHAT file extract MazeParamEditor to share it, prepare for having a GUI instead of console
27 lines
460 B
Java
27 lines
460 B
Java
package org.artisanlogiciel.games;
|
|
|
|
import java.io.File;
|
|
|
|
/**
|
|
* MazeParams contains parameters for a Maze generation
|
|
**/
|
|
public interface MazeParams
|
|
{
|
|
public int getWidth();
|
|
|
|
public int getHeight();
|
|
|
|
public int getMaxDepth();
|
|
|
|
/**
|
|
* @return name of Maze, used for creating filename at saving time
|
|
*/
|
|
public String getName();
|
|
|
|
/**
|
|
* @return directory owning where to save a maze
|
|
*/
|
|
public File getSaveDir();
|
|
|
|
}
|