public class NewCharInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
classChoice
Whether a class should be selected.
|
private int |
maxValue
The maximum value for stats.
|
private int |
minValue
The minimum value for stats.
|
private int |
points
The total number of points the character has to spend.
|
private boolean |
raceChoice
Whether a race should be selected.
|
private boolean |
startingMapChoice
Whether a starting map should be selected.
|
private java.util.List<java.lang.String> |
statNames
The stat names to set.
|
Constructor and Description |
---|
NewCharInfo(int points,
int minValue,
int maxValue,
java.util.Collection<java.lang.String> statNames,
boolean raceChoice,
boolean classChoice,
boolean startingMapChoice)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxValue()
Returns the maximum stat value.
|
int |
getMinValue()
Returns the minimum stat value.
|
int |
getPoints()
Returns the number of points the character has to spend.
|
java.util.List<java.lang.String> |
getStatNames()
Returns the stat names to spend on.
|
boolean |
isClassChoice()
Returns whether a class should be selected.
|
boolean |
isRaceChoice()
Returns whether a race should be selected.
|
boolean |
isStartingMapChoice()
Returns whether a starting map should be selected.
|
java.lang.String |
toString() |
private final boolean classChoice
private final int maxValue
private final int minValue
private final int points
private final boolean raceChoice
private final boolean startingMapChoice
@NotNull private final java.util.List<java.lang.String> statNames
public NewCharInfo(int points, int minValue, int maxValue, @NotNull java.util.Collection<java.lang.String> statNames, boolean raceChoice, boolean classChoice, boolean startingMapChoice)
points
- the number of points the character has to spendminValue
- the minimum stat valuemaxValue
- the maximum stat valuestatNames
- the stat names to spend onraceChoice
- whether a race should be selectedclassChoice
- whether a class should be selectedstartingMapChoice
- whether a starting map should be selectedpublic int getMaxValue()
public int getMinValue()
public int getPoints()
@NotNull public java.util.List<java.lang.String> getStatNames()
public boolean isClassChoice()
public boolean isRaceChoice()
public boolean isStartingMapChoice()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object