22 package com.realtime.crossfire.jxclient.server.crossfire;
25 import java.util.ArrayList;
26 import java.util.Arrays;
27 import java.util.List;
28 import org.jetbrains.annotations.NotNull;
56 private final List<String>
statNames =
new ArrayList<>();
80 return new NewCharInfo(points, minValue, maxValue, statNames, raceChoice, classChoice, startingMapChoice);
106 this.statNames.clear();
107 this.statNames.addAll(Arrays.asList(statNames));
128 startingMapChoice =
true;
void setStatRange(final int minValue, final int maxValue)
Sets the allowed stat value range.
NewCharInfo finish()
Finished parsing and returns the NewCharInfo instance for the parsed entry.
final List< String > statNames
The stat names to set.
int minValue
The minimum value for stats.
boolean classChoice
Whether a class should be selected.
General information for creating new characters.
void setRaceChoice()
Sets that a race should be selected.
int points
The total number of points the character has to spend.
void setStartingMapChoice()
Sets that a starting map should be selected.
int maxValue
The maximum value for stats.
void setClassChoice()
Sets that a class should be selected.
Builder for NewCharInfo instances while parsing a "replyinfo newcharinfo" response packet...
boolean raceChoice
Whether a race should be selected.
boolean startingMapChoice
Whether a starting map should be selected.
void setStatNames(@NotNull final String[] statNames)
Sets the stat names to spend on.
void setPoints(final int points)
Sets the number of points the character has to spend.