Class NewCharInfoBuilder

java.lang.Object
com.realtime.crossfire.jxclient.server.crossfire.NewCharInfoBuilder

public class NewCharInfoBuilder extends Object
Builder for NewCharInfo instances while parsing a "replyinfo newcharinfo" response packet.
  • Constructor Details

    • NewCharInfoBuilder

      public NewCharInfoBuilder()
  • Method Details

    • finish

      @NotNull public @NotNull NewCharInfo finish()
      Finished parsing and returns the NewCharInfo instance for the parsed entry.
      Returns:
      the new char info instance
    • setPoints

      public void setPoints(int points)
      Sets the number of points the character has to spend.
      Parameters:
      points - the number of points
    • setStatRange

      public void setStatRange(int minValue, int maxValue)
      Sets the allowed stat value range.
      Parameters:
      minValue - the minimum stat value
      maxValue - the maximum stat value
    • setStatNames

      public void setStatNames(@NotNull @NotNull String @NotNull [] statNames)
      Sets the stat names to spend on.
      Parameters:
      statNames - the stat names
    • setRaceChoice

      public void setRaceChoice()
      Sets that a race should be selected.
    • setClassChoice

      public void setClassChoice()
      Sets that a class should be selected.
    • setStartingMapChoice

      public void setStartingMapChoice()
      Sets that a starting map should be selected.