Class SpellsDaily

java.lang.Object
SpellsDaily

public class SpellsDaily extends Object
Matrix of how many spells can be memorized daily.
Since:
2018-12-05
  • Field Details

    • SPELLS_DAILY_FILE

      final String SPELLS_DAILY_FILE
      Name of file with daily spells memorizable.
      See Also:
    • instance

      static SpellsDaily instance
      The singleton class instance.
    • spellsDailyData

      int[][] spellsDailyData
      Table of daily spells memorizible.
    • maxDataClassLevel

      int maxDataClassLevel
      Maximum class level in matrix.
    • maxSpellLevel

      int maxSpellLevel
      Maximum spell level.
  • Constructor Details

    • SpellsDaily

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

    • getInstance

      public static SpellsDaily getInstance()
      Access the singleton class instance.
    • getMaxSpellLevel

      public int getMaxSpellLevel()
      Get maximum spell level.
    • getSpellsDaily

      public int getSpellsDaily(int classLevel, int spellLevel)
      Get spells memorizable at class and spell level.
    • main

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