public class NewCharInfoBuilder
extends java.lang.Object
NewCharInfo
instances while parsing a "replyinfo
newcharinfo" response packet.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 |
---|
NewCharInfoBuilder() |
Modifier and Type | Method and Description |
---|---|
NewCharInfo |
finish()
Finished parsing and returns the
NewCharInfo instance for the
parsed entry. |
void |
setClassChoice()
Sets that a class should be selected.
|
void |
setPoints(int points)
Sets the number of points the character has to spend.
|
void |
setRaceChoice()
Sets that a race should be selected.
|
void |
setStartingMapChoice()
Sets that a starting map should be selected.
|
void |
setStatNames(java.lang.String[] statNames)
Sets the stat names to spend on.
|
void |
setStatRange(int minValue,
int maxValue)
Sets the allowed stat value range.
|
java.lang.String |
toString() |
private boolean classChoice
private int maxValue
private int minValue
private int points
private boolean raceChoice
private boolean startingMapChoice
@NotNull private final java.util.List<java.lang.String> statNames
@NotNull public NewCharInfo finish()
NewCharInfo
instance for the
parsed entry.public void setClassChoice()
public void setPoints(int points)
points
- the number of pointspublic void setRaceChoice()
public void setStartingMapChoice()
public void setStatNames(@NotNull java.lang.String[] statNames)
statNames
- the stat namespublic void setStatRange(int minValue, int maxValue)
minValue
- the minimum stat valuemaxValue
- the maximum stat value@NotNull public java.lang.String toString()
toString
in class java.lang.Object