Class XPAwardTable
java.lang.Object
XPAwardTable
Experience award table from Sup-I.
- Since:
- 2015-12-27
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static XPAwardTable
The singleton class instance.(package private) final String
Name of file with information.private XPAwardTable.XPAwardRecord[]
Array of XPRecords. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
getAwardSteps
(Monster monster) Compute Sup-I awards to give by EHD.static XPAwardTable
Access the singleton class instance.private XPAwardTable.XPAwardRecord
getRecordByNum
(int num) Get record by high hit die number.private XPAwardTable.XPAwardRecord
getRecordByText
(String text) Get record by hit dice text.int
getXPAward
(Monster monster) Get total XP for monster as per Sup-I.private XPAwardTable.XPAwardRecord
getXPAwardRecord
(Dice HD) Lookup XP record in table, as per Sup-I.static void
Main test method.
-
Field Details
-
XP_AWARD_TABLE_FILE
Name of file with information.- See Also:
-
instance
The singleton class instance. -
xpAwardRecordArray
Array of XPRecords.
-
-
Constructor Details
-
XPAwardTable
Constructor (read from dedicated file).- Throws:
IOException
-
-
Method Details
-
getInstance
Access the singleton class instance. -
getXPAward
Get total XP for monster as per Sup-I. Monster xpBonuses give special addition each. -
getAwardSteps
Compute Sup-I awards to give by EHD. -
getXPAwardRecord
Lookup XP record in table, as per Sup-I. -
getRecordByText
Get record by hit dice text. -
getRecordByNum
Get record by high hit die number. -
main
Main test method.
-