Class NewCharInfo
- java.lang.Object
-
- com.realtime.crossfire.jxclient.character.NewCharInfo
-
public class NewCharInfo extends java.lang.ObjectGeneral information for creating new characters.
-
-
Constructor Summary
Constructors Constructor Description NewCharInfo(int points, int minValue, int maxValue, @NotNull java.util.Collection<java.lang.String> statNames, boolean raceChoice, boolean classChoice, boolean startingMapChoice)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxValue()Returns the maximum stat value.intgetMinValue()Returns the minimum stat value.intgetPoints()Returns the number of points the character has to spend.@NotNull java.util.List<java.lang.String>getStatNames()Returns the stat names to spend on.booleanisClassChoice()Returns whether a class should be selected.booleanisRaceChoice()Returns whether a race should be selected.booleanisStartingMapChoice()Returns whether a starting map should be selected.@NotNull java.lang.StringtoString()
-
-
-
Constructor Detail
-
NewCharInfo
public NewCharInfo(int points, int minValue, int maxValue, @NotNull @NotNull java.util.Collection<java.lang.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 Detail
-
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
@NotNull public @NotNull java.util.List<java.lang.String> 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
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-