|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ogs.support.Object | +--ogs.core.Character
A character is a fictional individual in a campaign setting. More specifically, a character is a creature with one or more character classes (cclasses). From a design pattern perspective, a character is the director or mediator of a creature and one or more cclasses.
Nested Class Summary | |
class |
Character.Advance
Manages experience level advancement of a character. |
Field Summary |
Fields inherited from class ogs.support.Object |
listeners |
Constructor Summary | |
Character(Creature creature,
CClass cclass)
Create a single-classed, Nth-level character. |
Method Summary | |
void |
advanceCClass(CClass cclass)
Advance a character class for this character. |
boolean |
canAdvance()
Determine if this character can advance to the next experience level. |
boolean |
canIncreaseAbility()
Determine if this character can increase an ability score. |
Creature |
getCreature()
Determine the creature for this character. |
int |
getLevel()
Determine the experience level of this character. |
int |
getPoints()
Determine the current number of experience points for this character. |
int |
getSkillPoints()
Determine how many skill points are available to spend on skills. |
void |
setPoints(int xpPoints)
Change the current experience points of a character. |
Methods inherited from class ogs.support.Object |
addListener, handleEvent, notifyListeners, removeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Character(Creature creature, CClass cclass)
creature
- Creatures used as character.cclass
- Character class of the character.Method Detail |
public Creature getCreature()
public int getPoints()
public void setPoints(int xpPoints)
public int getLevel()
public boolean canAdvance()
public void advanceCClass(CClass cclass)
cclass
- Character class to advance.public int getSkillPoints()
public boolean canIncreaseAbility()
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |