public class ClassType extends Object
Modifier and Type | Field and Description |
---|---|
(package private) String |
abbreviation
Abbreviation for this class.
|
(package private) int |
advancedHpInc
Hit points added after max dice.
|
(package private) int |
advancedXpInc
XP increment needed for advanced levels.
|
(package private) int |
atkBonusDenom
Attack bonus denominator.
|
(package private) int |
atkBonusNumer
Attack bonus numerator.
|
(package private) int |
hitDiceMax
Hit dice maximum.
|
(package private) int |
hitDiceType
Hit dice type (sides).
|
(package private) String |
name
Name of this class.
|
(package private) Ability |
primeRequisite
Prime requisite ability.
|
(package private) String |
saveAsClass
Save as this class.
|
(package private) String[] |
titles
Array of level titles.
|
(package private) int[] |
xpReqs
Array of low-level XP requirements.
|
Constructor and Description |
---|
ClassType(String[] indexData,
String[][] levelData)
Constructor (from String arrays).
|
Modifier and Type | Method and Description |
---|---|
String |
getAbbreviation()
Get the class abbreviation.
|
int |
getAttackBonus(int level)
Compute the attack bonus.
|
int |
getExperienceReq(int level)
Compute the experience required for a level.
|
int |
getExperienceReqNext(int level)
Get the experience required for the following level.
|
Dice |
getHitDiceInc(int level)
Returns added hit dice at a given level.
|
Dice |
getHitDiceTotal(int level)
Returns total hit dice at a given level.
|
int |
getHitDiceType()
Get the hit dice type.
|
int |
getLevelFromTitle(String title)
Get the level indicated by a given title.
|
String |
getName()
Get the class name.
|
Ability |
getPrimeRequisite()
Get the prime requisite.
|
String |
getSaveAsClass()
Get the name of the class that we save as.
|
String |
getTitleFromLevel(int level)
Get the title for a given level.
|
String |
toString()
Identify this object as a string.
|
String name
String abbreviation
Ability primeRequisite
int atkBonusNumer
int atkBonusDenom
int hitDiceType
int hitDiceMax
int advancedHpInc
String saveAsClass
int advancedXpInc
int[] xpReqs
String[] titles
public String getName()
public String getAbbreviation()
public Ability getPrimeRequisite()
public int getHitDiceType()
public int getAttackBonus(int level)
public Dice getHitDiceInc(int level)
public Dice getHitDiceTotal(int level)
public String getTitleFromLevel(int level)
public int getLevelFromTitle(String title)
public int getExperienceReq(int level)
public int getExperienceReqNext(int level)
public String getSaveAsClass()