public class Seed
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
density
The tile density of the board.
|
int |
height
The number of rows.
|
long |
seed
The seed for the random number generator.
|
int |
width
The number of columns.
|
Constructor and Description |
---|
Seed(int width,
int height,
double density)
Constructs a new seed with the given
width, height and density.
|
Seed(long seed,
int width,
int height,
double density)
Constructs a new seed with the given
width, height, density and random number
generator seed.
|
Seed(java.lang.String data)
Constructs a new seed from its string form.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public final long seed
public final int width
public final int height
public final double density
public Seed(int width, int height, double density)
width
- The number of columns.height
- The number of rows.density
- The density of the board.public Seed(long seed, int width, int height, double density)
seed
- The seed for the random number generator.width
- The number of columns.height
- The number of rows.density
- The density of the board.public Seed(java.lang.String data)
data
- The seed to decode.java.lang.IllegalArgumentException
- If the given seed is not valid.