Class XPAwardTable

java.lang.Object
XPAwardTable

public class XPAwardTable extends Object
Experience award table from Sup-I.
Since:
2015-12-27
  • Field Details

  • Constructor Details

    • XPAwardTable

      protected XPAwardTable() throws IOException
      Constructor (read from dedicated file).
      Throws:
      IOException
  • Method Details

    • getInstance

      public static XPAwardTable getInstance()
      Access the singleton class instance.
    • getXPAward

      public int getXPAward(Monster monster)
      Get total XP for monster as per Sup-I. Monster xpBonuses give special addition each.
    • getAwardSteps

      private int getAwardSteps(Monster monster)
      Compute Sup-I awards to give by EHD.
    • getXPAwardRecord

      private XPAwardTable.XPAwardRecord getXPAwardRecord(Dice HD)
      Lookup XP record in table, as per Sup-I.
    • getRecordByText

      private XPAwardTable.XPAwardRecord getRecordByText(String text)
      Get record by hit dice text.
    • getRecordByNum

      private XPAwardTable.XPAwardRecord getRecordByNum(int num)
      Get record by high hit die number.
    • main

      public static void main(String[] args)
      Main test method.