|
Public Types |
|
typedef int | Type |
| | An integer type that represents a specific type of skill.
|
|
typedef unsigned short int | Points |
| | An unsigned integer that represents a number of points invested on increasing the ranks of a skill.
|
|
typedef unsigned short int | Ranks |
| | An unsigned integer that represents a number of ranks that are added to checks of a skill.
|
Public Member Functions |
| | Skill (Type type, Ability::Type keyAbility, bool useUntrained, bool useArmorPenalty, Points cclassPoints=0) |
| | Create a new skill.
|
| Type | getType () const |
| | Determine the type of this skill.
|
| Ability::Type | getKeyAbility () const |
| | Determine the key ability for this type of skill.
|
| bool | useUntrained () const |
| | Determine if this type of ability can be used untrained.
|
| bool | useArmorPenalty () const |
| | Determine if an armor check penalty applies to checks for this skill.
|
| Points | getMaximumPoints () const |
| | Determine the maximum points assigned to this skill.
|
| void | setMaximumPoints (Points points) |
| | Change the maximum number of points that can be invested in this skill.
|
| Ranks | getMaximumRanks () const |
| | Determine the maximum rank for this skill.
|
| Points | getCurrentPoints (bool cclassSkill=true) const |
| | Determine the current points allocated to this skill.
|
| void | setCurrentPoints (Points points, bool cclassSkill=true) |
| | Change the current points allocated to this skill.
|
| Ranks | getCurrentRanks () const |
| | Determine the current rank of this skill.
|
| Modifiers & | getModifiers () |
| | Determine the modifiers added to checks for this skill.
|
Static Public Member Functions |
| Points | getMaximumPoints (XP::Level xpLevel) |
| | Determine the maximum number of points that can be allocated to a skill at a given experience level.
|
| XP::Level | getMaximumPointsLevel (Points points) |
| | Determine the experience level for a given number of maximum skill points or ranks in a class skill.
|
Protected Member Functions |
| bool | checkMaximumRanks (Points points, bool cclassSkill) |
| | Determine if a change in skill points will exceed the maximum ranks.
|
Static Protected Member Functions |
| Ranks | getRanks (Points cclassPoints, Points xclassPoints) |
| | Determine ranks from cclass skill points and cross-cclass skill * points.
|
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.