|
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.Feature | +--ogs.core.Skill
A feature that is checked for success or failure. A skill is checked is checked using basic task resolution The modifiers of the skill are added to the roll of 1d20 and compared to a difficulty check (DC) or to the roll of another skill. The latter case is called an oppposed skill check.
A skill can be reinforced by spending points on it. Skill points are gained each time the character increases in level. Skill points increase the skill rank. A skill rank is essentially the base modifier added to skill checks. Skill ranks are also determined by character classes.
A skill can be related to a character class (cclass) in one of three ways. A cross-cclass skill is a skill that be used by any cclass but each point spent on the skill equals half a rank. A cclass skill is a skill that has one rank for each point spent on it. An exclusive skill is a cclass skill that can only be used by certain cclasses A campaign determines the relationships between cclasses and skills.
Field Summary |
Fields inherited from class ogs.support.Object |
listeners |
Constructor Summary | |
Skill()
|
Method Summary | |
abstract boolean |
applyArmorCheckPenalty()
Determine if an armor check penalty applies when this skill is used. |
boolean |
attachObject(Object object)
Attach this skill to a creature. |
int |
getCurrentPoints(boolean cclassSkill)
Determine the current points allocated to this skill. |
int |
getCurrentRanks()
Determine the current rank of this skill. |
abstract int |
getKeyAbility()
Determine the key ability for this type of skill. |
int |
getMaximumPoints()
Determine the maximum points assigned to this skill. |
static int |
getMaximumPoints(int xpLevel)
Determine the maximum number of points that can be allocated to a skill at a given experience level. |
static int |
getMaximumPointsLevel(int points)
Determine the experience level for a given number of maximum skill points or ranks in a class skill. |
int |
getMaximumRanks()
Determine the maximum rank for this skill. |
Modifiers |
getModifiers()
Determine the list of modifiers for checks of this skill. |
void |
setCurrentPoints(int skillPoints,
boolean cclassSkill)
Change the current points allocated to this skill. |
void |
setMaximumPoints(int skillPoints)
Change the maximum points assigned to this skill. |
abstract boolean |
useUntrained()
Determine if this type of skill can be used untrained. |
Methods inherited from class ogs.core.Feature |
canAttach, canDetach, detachObject, getObject |
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 Skill()
Method Detail |
public static int getMaximumPoints(int xpLevel)
xpLevel
- Experience level of character.
Skill
public static int getMaximumPointsLevel(int points)
points
- Maximum number of points allocated to a skill.
public abstract int getKeyAbility()
public abstract boolean useUntrained()
public abstract boolean applyArmorCheckPenalty()
public boolean attachObject(Object object)
Creature
class.
attachObject
in class Feature
object
- An instance of a Creature subclass.
public int getMaximumPoints()
public void setMaximumPoints(int skillPoints)
skillPoints
- Maximum skill points.public int getMaximumRanks()
public int getCurrentPoints(boolean cclassSkill)
cclassSkill
- True to determine the cclass skill points or
false to determine the cross-class skill points.
public void setCurrentPoints(int skillPoints, boolean cclassSkill)
skillPoints
- Current skill points.cclassSkill
- True if points are for a cclass skill or
false if points are for a cross-class skill.
RuntimeException
- If the maximum skill rank is exceeded.public int getCurrentRanks()
public Modifiers getModifiers()
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |