Class NewCharInfo
java.lang.Object
com.realtime.crossfire.jxclient.character.NewCharInfo
General information for creating new characters.
-
Constructor Summary
ConstructorsConstructorDescriptionNewCharInfo(int points, int minValue, int maxValue, @NotNull Collection<String> statNames, boolean raceChoice, boolean classChoice, boolean startingMapChoice) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum stat value.intReturns the minimum stat value.intReturns the number of points the character has to spend.Returns the stat names to spend on.booleanReturns whether a class should be selected.booleanReturns whether a race should be selected.booleanReturns whether a starting map should be selected.@NotNull StringtoString()
-
Constructor Details
-
NewCharInfo
public NewCharInfo(int points, int minValue, int maxValue, @NotNull @NotNull Collection<String> statNames, boolean raceChoice, boolean classChoice, boolean startingMapChoice) Creates a new instance.- Parameters:
points- the number of points the character has to spendminValue- the minimum stat valuemaxValue- the maximum stat valuestatNames- the stat names to spend onraceChoice- whether a race should be selectedclassChoice- whether a class should be selectedstartingMapChoice- whether a starting map should be selected
-
-
Method Details
-
getPoints
public int getPoints()Returns the number of points the character has to spend.- Returns:
- the number of points
-
getMinValue
public int getMinValue()Returns the minimum stat value.- Returns:
- the minimum stat value
-
getMaxValue
public int getMaxValue()Returns the maximum stat value.- Returns:
- the maximum stat value
-
getStatNames
Returns the stat names to spend on.- Returns:
- the stat names
-
isRaceChoice
public boolean isRaceChoice()Returns whether a race should be selected.- Returns:
- whether a race should be selected
-
isClassChoice
public boolean isClassChoice()Returns whether a class should be selected.- Returns:
- whether a class should be selected
-
isStartingMapChoice
public boolean isStartingMapChoice()Returns whether a starting map should be selected.- Returns:
- whether a starting map should be selected
-
toString
-