Class ClassRaceInfo


  • public class ClassRaceInfo
    extends java.lang.Object
    One possible class or race for character creation.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassRaceInfo​(@NotNull java.lang.String archName, @NotNull java.lang.String name, @NotNull java.lang.String msg, @NotNull java.util.Map<java.lang.Integer,​java.lang.Long> stats, @NotNull java.util.Collection<Choice> choices)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String getArchName()
      Returns the archetype name.
      @NotNull java.util.List<Choice> getChoices()
      Returns the available choices.
      @NotNull java.lang.String getMsg()
      Returns the long description.
      @NotNull java.lang.String getName()
      Returns the human readable race name.
      long getStatAdjustment​(int statNo)
      Returns a stat adjustment.
      @NotNull java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ClassRaceInfo

        public ClassRaceInfo​(@NotNull
                             @NotNull java.lang.String archName,
                             @NotNull
                             @NotNull java.lang.String name,
                             @NotNull
                             @NotNull java.lang.String msg,
                             @NotNull
                             @NotNull java.util.Map<java.lang.Integer,​java.lang.Long> stats,
                             @NotNull
                             @NotNull java.util.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 Detail

      • getArchName

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

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

        @NotNull
        public @NotNull java.lang.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 java.util.List<Choice> getChoices()
        Returns the available choices.
        Returns:
        the available choices
      • toString

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