public class XPTable extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
XPTable.XPRecord |
Modifier and Type | Field and Description |
---|---|
(package private) static XPTable |
instance
The singleton class instance.
|
(package private) static boolean |
revisedXpAwards
Use revised Sup-I XP awards table?
|
(package private) ArrayList<XPTable.XPRecord> |
xpRecordArray
Array of XPRecords.
|
(package private) String |
XPTABLE_FILE
Name of file with information.
|
Modifier | Constructor and Description |
---|---|
protected |
XPTable()
Constructor (read from dedicated file).
|
Modifier and Type | Method and Description |
---|---|
(package private) int |
computeXPBase(Dice HD)
Compute base XP by HD * 100, as per Vol-1.
|
static XPTable |
getInstance()
Access the singleton class instance.
|
(package private) XPTable.XPRecord |
getRecordByNum(int num)
Get record by high hit die number.
|
(package private) XPTable.XPRecord |
getRecordByText(String text)
Get record by hit dice text.
|
int |
getXPAward(Monster monster)
Get XP award for one monster.
|
(package private) XPTable.XPRecord |
getXPRecord(Dice HD)
Lookup XP record in table, as per Sup-I.
|
(package private) int |
getXPSupI(Monster monster)
Get total XP for monster as per Sup-I.
|
(package private) int |
getXPVol1(Monster monster)
Get total XP for monster as per Vol-1.
|
static void |
main(String[] args)
Main test method.
|
static void |
setRevisedXpAwards(boolean mode)
Set the XP award mode.
|
static boolean |
useRevisedXpAwards()
Use revised XP awards?
|
final String XPTABLE_FILE
static XPTable instance
ArrayList<XPTable.XPRecord> xpRecordArray
static boolean revisedXpAwards
protected XPTable() throws IOException
IOException
public static XPTable getInstance()
public static boolean useRevisedXpAwards()
public static void setRevisedXpAwards(boolean mode)
public int getXPAward(Monster monster)
int getXPVol1(Monster monster)
int getXPSupI(Monster monster)
int computeXPBase(Dice HD)
XPTable.XPRecord getXPRecord(Dice HD)
XPTable.XPRecord getRecordByText(String text)
XPTable.XPRecord getRecordByNum(int num)
public static void main(String[] args)