public enum SavingThrow extends Enum<SavingThrow>
Enum Constant and Description |
---|
Breath |
Death |
Paralysis |
Petrify |
Spell |
Modifier and Type | Method and Description |
---|---|
static boolean |
rollSave(SavingThrow save,
int level)
Roll a saving throw with no modifier.
|
static boolean |
rollSave(SavingThrow save,
int level,
int modifier)
Roll a saving throw.
|
static SavingThrow |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SavingThrow[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SavingThrow Spell
public static final SavingThrow Breath
public static final SavingThrow Petrify
public static final SavingThrow Paralysis
public static final SavingThrow Death
public static SavingThrow[] values()
for (SavingThrow c : SavingThrow.values()) System.out.println(c);
public static SavingThrow valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean rollSave(SavingThrow save, int level, int modifier)
public static boolean rollSave(SavingThrow save, int level)