Class ClassType
java.lang.Object
ClassType
One RPG character class type (fighter, thief, wizard, etc.).
- Since:
- 2014-05-22
-
Field Summary
Modifier and TypeFieldDescription(package private) String
Abbreviation for this class.(package private) int
Hit points added after max dice.(package private) int
Attack bonus denominator.(package private) int
Attack bonus numerator.(package private) int
Hit dice maximum.(package private) int
Hit dice type (sides).(package private) String
Name of this class.(package private) Ability
Prime requisite ability.(package private) String
Save as this class.(package private) String[]
Array of level titles.(package private) boolean
Does this class use feats?(package private) boolean
Does this class use skills?(package private) boolean
Does this class use spells?(package private) int[]
Array of low-level XP requirements. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the class abbreviation.Ability[]
Get the ability priority list.int
getAttackBonus
(int level) Compute the attack bonus.getHitDiceInc
(int level) Returns added hit dice at a given level.getHitDiceTotal
(int level) Returns total hit dice at a given level.int
Get the hit dice type.int
getLevelFromTitle
(String title) Get the level indicated by a given title.getName()
Get the class name.Get the prime requisite.Get the name of the class that we save as.getTitleFromLevel
(int level) Get the title for a given level.int
getXpMidpoint
(int level) Get experience midpoint for a given level.int
getXpReq
(int level) Compute the experience required for a level.int
getXpReqNext
(int level) Get the experience required for the following level.toString()
Identify this object as a string.boolean
Get whether we use feats.boolean
Get whether we use skills.boolean
Get whether we use spells.
-
Field Details
-
name
String nameName of this class. -
abbreviation
String abbreviationAbbreviation for this class. -
primeRequisite
Ability primeRequisitePrime requisite ability. -
atkBonusNumer
int atkBonusNumerAttack bonus numerator. -
atkBonusDenom
int atkBonusDenomAttack bonus denominator. -
hitDiceType
int hitDiceTypeHit dice type (sides). -
hitDiceMax
int hitDiceMaxHit dice maximum. -
advancedHpInc
int advancedHpIncHit points added after max dice. -
saveAsClass
String saveAsClassSave as this class. -
useFeats
boolean useFeatsDoes this class use feats? -
useSkills
boolean useSkillsDoes this class use skills? -
useSpells
boolean useSpellsDoes this class use spells? -
xpReqs
int[] xpReqsArray of low-level XP requirements. -
titles
String[] titlesArray of level titles.
-
-
Constructor Details
-
ClassType
Constructor (from String arrays).- Parameters:
indexData
- Top-level data about this class.levelData
- Level-specific information (title, XP, etc.)
-
-
Method Details
-
getName
Get the class name. -
getAbbreviation
Get the class abbreviation. -
getPrimeReq
Get the prime requisite. -
getHitDiceType
public int getHitDiceType()Get the hit dice type. -
getAttackBonus
public int getAttackBonus(int level) Compute the attack bonus. -
getHitDiceInc
Returns added hit dice at a given level. -
getHitDiceTotal
Returns total hit dice at a given level. -
getTitleFromLevel
Get the title for a given level. -
getLevelFromTitle
Get the level indicated by a given title. -
getXpReq
public int getXpReq(int level) Compute the experience required for a level. -
getXpReqNext
public int getXpReqNext(int level) Get the experience required for the following level. -
getXpMidpoint
public int getXpMidpoint(int level) Get experience midpoint for a given level. -
getSaveAsClass
Get the name of the class that we save as. -
usesFeats
public boolean usesFeats()Get whether we use feats. -
usesSkills
public boolean usesSkills()Get whether we use skills. -
usesSpells
public boolean usesSpells()Get whether we use spells. -
getAbilityPriority
Get the ability priority list. -
toString
Identify this object as a string.
-