|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ogs.core.Saves
A set of saving throw modifiers. The set contains a list of modifiers that are added to rolls for each type of saving throw.
Field Summary | |
Modifiers |
fort
Modifiers added to Fortitude saving throws. |
Modifiers |
ref
Modifiers added to Reflex saving throws. |
Modifiers |
will
Modifiers added to Will saving throws. |
Constructor Summary | |
Saves()
Create an empty set of saving throw modifiers. |
Method Summary | |
static int |
getStrongBonus(int xpLevel)
Determine the stronger (higher) base save bonus for a given experience level. |
static int |
getWeakBonus(int xpLevel)
Determine the stronger (higher) base save bonus for a given experience level. |
boolean |
rollFortSave(int dc)
Roll a Fortitude saving throw. |
boolean |
rollRefSave(int dc)
Roll a Reflex saving throw. |
boolean |
rollWillSave(int dc)
Roll a Will saving throw. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Modifiers fort
public Modifiers ref
public Modifiers will
Constructor Detail |
public Saves()
Method Detail |
public static int getStrongBonus(int xpLevel)
xpLevel
- Experience level of cclass.
public static int getWeakBonus(int xpLevel)
xpLevel
- Experience level of cclass.
public boolean rollFortSave(int dc)
dc
- Difficulty class of saving throw.
public boolean rollRefSave(int dc)
dc
- Difficulty class of saving throw.
public boolean rollWillSave(int dc)
dc
- Difficulty class of saving throw.
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |