public class NewCharInfoBuilder
extends java.lang.Object
NewCharInfo
instances while parsing a "replyinfo
newcharinfo" response packet.Constructor and Description |
---|
NewCharInfoBuilder() |
Modifier and Type | Method and Description |
---|---|
@NotNull com.realtime.crossfire.jxclient.character.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(@NotNull java.lang.String[] statNames)
Sets the stat names to spend on.
|
void |
setStatRange(int minValue,
int maxValue)
Sets the allowed stat value range.
|
@NotNull public @NotNull com.realtime.crossfire.jxclient.character.NewCharInfo finish()
NewCharInfo
instance for the
parsed entry.public void setPoints(int points)
points
- the number of pointspublic void setStatRange(int minValue, int maxValue)
minValue
- the minimum stat valuemaxValue
- the maximum stat valuepublic void setStatNames(@NotNull @NotNull java.lang.String[] statNames)
statNames
- the stat namespublic void setRaceChoice()
public void setClassChoice()
public void setStartingMapChoice()