Class ClassRaceInfo

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

public class ClassRaceInfo extends Object
One possible class or race for character creation.
  • Constructor Details

    • ClassRaceInfo

      public ClassRaceInfo(@NotNull @NotNull String archName, @NotNull @NotNull String name, @NotNull @NotNull String msg, @NotNull @NotNull Map<Integer,Long> stats, @NotNull @NotNull Collection<Choice> choices)
      Creates a new instance.
      Parameters:
      archName - the archetype name
      name - the human-readable race name
      msg - the long description
      stats - the stat adjustments
      choices - the available choices
  • Method Details

    • getArchName

      @NotNull public @NotNull String getArchName()
      Returns the archetype name.
      Returns:
      the archetype name
    • getName

      @NotNull public @NotNull String getName()
      Returns the human-readable race name.
      Returns:
      the human-readable race name
    • getMsg

      @NotNull public @NotNull String getMsg()
      Returns the long description.
      Returns:
      the long description
    • getStatAdjustment

      public long getStatAdjustment(int statNo)
      Returns a stat adjustment.
      Parameters:
      statNo - the stat number
      Returns:
      the adjustment
    • getChoices

      @NotNull public @NotNull List<Choice> getChoices()
      Returns the available choices.
      Returns:
      the available choices
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object