Class SpellsDaily
java.lang.Object
SpellsDaily
Matrix of how many spells can be memorized daily.
- Since:
- 2018-12-05
-
Field Summary
Modifier and TypeFieldDescription(package private) static SpellsDaily
The singleton class instance.(package private) int
Maximum class level in matrix.(package private) int
Maximum spell level.(package private) final String
Name of file with daily spells memorizable.(package private) int[][]
Table of daily spells memorizible. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SpellsDaily
Access the singleton class instance.int
Get maximum spell level.int
getSpellsDaily
(int classLevel, int spellLevel) Get spells memorizable at class and spell level.static void
Main test function.
-
Field Details
-
SPELLS_DAILY_FILE
Name of file with daily spells memorizable.- See Also:
-
instance
The singleton class instance. -
spellsDailyData
int[][] spellsDailyDataTable of daily spells memorizible. -
maxDataClassLevel
int maxDataClassLevelMaximum class level in matrix. -
maxSpellLevel
int maxSpellLevelMaximum spell level.
-
-
Constructor Details
-
SpellsDaily
Constructor (read from dedicated file).- Throws:
IOException
-
-
Method Details
-
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
Main test function.
-