Class NewCharInfo

java.lang.Object
com.realtime.crossfire.jxclient.character.NewCharInfo

public class NewCharInfo extends Object
General information for creating new characters.
  • 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 spend
      minValue - the minimum stat value
      maxValue - the maximum stat value
      statNames - the stat names to spend on
      raceChoice - whether a race should be selected
      classChoice - whether a class should be selected
      startingMapChoice - 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

      @NotNull public @NotNull List<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 String toString()
      Overrides:
      toString in class Object