public class GenericSpell extends Feature implements java.lang.Comparable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static char[] |
RESERVED |
static java.lang.String |
TYPE |
featureType, level, name
Constructor and Description |
---|
GenericSpell() |
GenericSpell(java.lang.String name,
byte level) |
Modifier and Type | Method and Description |
---|---|
byte |
accessLevel() |
java.lang.String |
accessName() |
int |
compareTo(java.lang.Object o)
Compares first by the spell level, then by spell name.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
compareNameLevelType, getCost, getFeatureName, getFeatureType, getLevel, same, setCost, setFeatureName, setFeatureType, setLevel
public static final java.lang.String TYPE
public static final char[] RESERVED
public GenericSpell()
public GenericSpell(java.lang.String name, byte level) throws SpellMalformedException
SpellMalformedException