Add java.util.random seed as initial parameter
- prepare for short save allowing to fully recreate initial lab having only seed and x,y,depth paramters
This commit is contained in:
@@ -8,6 +8,7 @@ import java.util.Scanner;
|
||||
**/
|
||||
class MazeParamEditor implements MazeParams
|
||||
{
|
||||
long seed;
|
||||
int width;
|
||||
int height;
|
||||
int maxdepth;
|
||||
@@ -27,6 +28,11 @@ class MazeParamEditor implements MazeParams
|
||||
maxdepth = console.nextInt();
|
||||
}
|
||||
|
||||
public long getSeed()
|
||||
{
|
||||
return seed;
|
||||
}
|
||||
|
||||
public int getWidth()
|
||||
{
|
||||
return width;
|
||||
@@ -51,6 +57,11 @@ class MazeParamEditor implements MazeParams
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setSeed(long seed)
|
||||
{
|
||||
this.seed = seed;
|
||||
}
|
||||
|
||||
public File getSaveDir()
|
||||
{
|
||||
return labdir;
|
||||
|
||||
Reference in New Issue
Block a user