Class RollTable

java.lang.Object
de.rpgframework.random.RollTable

@Root(name="rollTable") public class RollTable extends Object
  • Field Details

    • id

      @Attribute(required=true) protected String id
      An identifier within type
    • d6

      @Attribute protected int d6
    • d20

      @Attribute protected int d20
    • d00

      @Attribute protected int d00
    • modifiers

      @Attribute protected String modifiers
    • draw

      @Attribute protected int draw
      How many results shall be drawn from the table
    • nextTable

      @Attribute protected String nextTable
  • Constructor Details

    • RollTable

      public RollTable()
  • Method Details

    • getResultFor

      public RollResult getResultFor(int value)
    • getId

      public String getId()
      Returns:
      the id
    • getD6

      public int getD6()
      Returns:
      the d6
    • getModifierNames

      public Collection<String> getModifierNames()
    • getResults

      public List<RollResult> getResults()
      Returns:
      the results
    • getNextTable

      public String getNextTable()
      Returns:
      the nextTable
    • getAddNode

      public AddNodeInstruction getAddNode()
      Returns:
      the addNode