22 package com.realtime.crossfire.jxclient.character;
24 import java.util.ArrayList;
25 import java.util.Collection;
26 import java.util.Collections;
27 import java.util.List;
28 import org.jetbrains.annotations.NotNull;
55 private final List<String>
statNames =
new ArrayList<>();
82 public NewCharInfo(
final int points,
final int minValue,
final int maxValue, @NotNull
final Collection<String> statNames,
final boolean raceChoice,
final boolean classChoice,
final boolean startingMapChoice) {
89 this.statNames.addAll(statNames);
122 return Collections.unmodifiableList(statNames);
155 return "points="+points+
", statRange="+minValue+
".."+maxValue+
", stats="+statNames+
", race="+raceChoice+
", class="+classChoice+
", startingMap="+
startingMapChoice;
boolean isStartingMapChoice()
Returns whether a starting map should be selected.
int getMinValue()
Returns the minimum stat value.
boolean isClassChoice()
Returns whether a class should be selected.
General information for creating new characters.
NewCharInfo(final int points, final int minValue, final int maxValue, @NotNull final Collection< String > statNames, final boolean raceChoice, final boolean classChoice, final boolean startingMapChoice)
Creates a new instance.
final int points
The total number of points the character has to spend.
final List< String > statNames
The stat names to set.
final int maxValue
The maximum value for stats.
List< String > getStatNames()
Returns the stat names to spend on.
boolean isRaceChoice()
Returns whether a race should be selected.
final int minValue
The minimum value for stats.
final boolean classChoice
Whether a class should be selected.
int getMaxValue()
Returns the maximum stat value.
int getPoints()
Returns the number of points the character has to spend.
final boolean startingMapChoice
Whether a starting map should be selected.
final boolean raceChoice
Whether a race should be selected.