public enum Ability extends Enum<Ability>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Ability.BonusType |
Modifier and Type | Field and Description |
---|---|
(package private) static Ability.BonusType |
BONUS_TYPE |
static int |
length
Total number of ability scores available.
|
Modifier and Type | Method and Description |
---|---|
static int |
bonusPercentXP(int score)
Returns bonus percent of XP for prime requisite.
|
private static int |
getBonus_BX(int score)
BX-style bonus for a given ability score.
|
private static int |
getBonus_OED(int score)
OED-style bonus for a given ability score.
|
static int |
getBonus(int score)
Gives the bonus for a given ability score.
|
static Ability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ability Str
public static final Ability Int
public static final Ability Wis
public static final Ability Dex
public static final Ability Con
public static final Ability Cha
public static final int length
static final Ability.BonusType BONUS_TYPE
public static Ability[] values()
for (Ability c : Ability.values()) System.out.println(c);
public static Ability 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 int getBonus(int score)
private static int getBonus_BX(int score)
private static int getBonus_OED(int score)
public static int bonusPercentXP(int score)