public class SpecialAbility extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SpecialAbility.SpecialType
Enumeration for different special ability types.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
ENERGY_DRAIN_DAMAGING
Does energy drain lower current hit points?
|
(package private) static boolean |
ENERGY_DRAIN_SAVE
Allow a save versus energy drain?
|
private int |
param
Parameter for level of ability.
|
(package private) static boolean |
ROTTING_DISEASE_SAVE
Allow a save versus rotting disease?
|
private SpecialAbility.SpecialType |
type
Type of special ability.
|
Constructor and Description |
---|
SpecialAbility(SpecialAbility.SpecialType type)
Constructor (type only).
|
SpecialAbility(SpecialAbility.SpecialType type,
int param)
Constructor (type, param).
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowSave()
Do we optionally allow a save against this ability?
|
static SpecialAbility |
createFromString(String s)
Create new special ability from string.
|
int |
getParam()
Get the parameter of this special ability.
|
SpecialAbility.SpecialType |
getType()
Get the type of this special ability.
|
boolean |
isDisabling()
Does this ability confer a disabling condition?
|
static void |
main(String[] args)
Main test function.
|
String |
toString()
Identify this object as a string.
|
static final boolean ENERGY_DRAIN_SAVE
static final boolean ROTTING_DISEASE_SAVE
public static final boolean ENERGY_DRAIN_DAMAGING
private SpecialAbility.SpecialType type
private int param
SpecialAbility(SpecialAbility.SpecialType type, int param)
SpecialAbility(SpecialAbility.SpecialType type)
public static SpecialAbility createFromString(String s)
public SpecialAbility.SpecialType getType()
public int getParam()
public boolean allowSave()
public boolean isDisabling()
public String toString()
public static void main(String[] args)