public class ClassRecord extends Object
Modifier and Type | Field and Description |
---|---|
(package private) Character |
character
Character reference.
|
(package private) ClassType |
classType
Class type for this class.
|
(package private) int |
hitPoints
Hit points earned for this class.
|
(package private) int |
level
Level in this class.
|
(package private) int |
XP
Experience points earned towards this class.
|
Constructor and Description |
---|
ClassRecord(Character character,
ClassType type,
int level)
Constructor (by ClassInfo, level, random hit points).
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addAllFeats()
Choose all feats for new character.
|
void |
addLevel()
Increment the level.
|
void |
addXP(int awardXP)
Add XP to this class.
|
int |
attackBonus()
Return the base attack bonus for this class/level.
|
ClassType |
getClassType() |
Dice |
getHitDice()
Get adjusted hit dice for this class.
|
int |
getHitPoints() |
int |
getLevel() |
(package private) int |
getMidpointXP()
Get midpoint XP for current level.
|
int |
getXP() |
void |
handleConChange(int oldCon)
Handle a Constitution change to hit points.
|
(package private) boolean |
isFeatLevel(int newLevel)
Is this a level where we gain a feat?
|
void |
loseLevel()
Decrement the level.
|
(package private) void |
rollFullHitPoints()
Roll full hit points from start to current level.
|
(package private) void |
rollNewHitPoints(int newLevel)
Add hit points for a given level.
|
String |
toString()
Identify this object as a string.
|
Character character
ClassType classType
int level
int hitPoints
int XP
public ClassType getClassType()
public int getLevel()
public int getHitPoints()
public int getXP()
public int attackBonus()
public void addXP(int awardXP)
public void addLevel()
public void loseLevel()
void addAllFeats()
boolean isFeatLevel(int newLevel)
int getMidpointXP()
void rollNewHitPoints(int newLevel)
void rollFullHitPoints()
public Dice getHitDice()
public void handleConChange(int oldCon)