create lab directory in parent

abstract MazeParams to be able to set them easily
doit.sh support new class creation
updated README

Signed-off-by: philippe lhardy <philippe@pavilionartlogiciel>
This commit is contained in:
philippe lhardy
2015-02-18 21:06:37 +01:00
parent 894e5c7970
commit 7d8ce42c15
5 changed files with 151 additions and 23 deletions

View File

@@ -74,6 +74,15 @@ implements WallsProvider
t= new short[width][height];
}
public LabyModel(MazeParams params, Random random){
this.width=params.getWidth();
this.height=params.getHeight();
this.maxdepth=params.getMaxDepth();
this.random = random;
// CLEAR == 0 and array is initialized with 0s
t= new short[width][height];
}
public LabyModel(String pFormat, InputStream pIn)
throws IOException
{