Class NewCharInfoBuilder
java.lang.Object
com.realtime.crossfire.jxclient.server.crossfire.NewCharInfoBuilder
Builder for
NewCharInfo instances while parsing a "replyinfo
newcharinfo" response packet.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull NewCharInfofinish()Finished parsing and returns theNewCharInfoinstance for the parsed entry.voidSets that a class should be selected.voidsetPoints(int points) Sets the number of points the character has to spend.voidSets that a race should be selected.voidSets that a starting map should be selected.voidsetStatNames(@NotNull String @NotNull [] statNames) Sets the stat names to spend on.voidsetStatRange(int minValue, int maxValue) Sets the allowed stat value range.
-
Constructor Details
-
NewCharInfoBuilder
public NewCharInfoBuilder()
-
-
Method Details
-
finish
Finished parsing and returns theNewCharInfoinstance for the parsed entry.- Returns:
- the new char info instance
-
setPoints
public void setPoints(int points) Sets the number of points the character has to spend.- Parameters:
points- the number of points
-
setStatRange
public void setStatRange(int minValue, int maxValue) Sets the allowed stat value range.- Parameters:
minValue- the minimum stat valuemaxValue- the maximum stat value
-
setStatNames
Sets the stat names to spend on.- Parameters:
statNames- the stat names
-
setRaceChoice
public void setRaceChoice()Sets that a race should be selected. -
setClassChoice
public void setClassChoice()Sets that a class should be selected. -
setStartingMapChoice
public void setStartingMapChoice()Sets that a starting map should be selected.
-