Class NewCharInfo


  • public class NewCharInfo
    extends java.lang.Object
    General 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
      int getMaxValue()
      Returns the maximum stat value.
      int getMinValue()
      Returns the minimum stat value.
      int getPoints()
      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.
      boolean isClassChoice()
      Returns whether a class should be selected.
      boolean isRaceChoice()
      Returns whether a race should be selected.
      boolean isStartingMapChoice()
      Returns whether a starting map should be selected.
      @NotNull java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 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 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:
        toString in class java.lang.Object