public enum AttributeType extends java.lang.Enum<AttributeType>
Enum Constant and Description |
---|
CONSTITUTION |
DEXTERITY |
INTELLIGENCE |
STRENGHT |
WISDOM |
Modifier and Type | Method and Description |
---|---|
static AttributeType |
fromId(java.lang.String attName)
Converts attribute ID to attribute type enumeration
|
java.lang.String |
getId()
Returns ID of this type
|
java.lang.String |
getName()
Returns name of this type
|
static AttributeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AttributeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributeType STRENGHT
public static final AttributeType CONSTITUTION
public static final AttributeType DEXTERITY
public static final AttributeType INTELLIGENCE
public static final AttributeType WISDOM
public static AttributeType[] values()
for (AttributeType c : AttributeType.values()) System.out.println(c);
public static AttributeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static AttributeType fromId(java.lang.String attName)
attName
- String with attribute Idpublic java.lang.String getName()
public java.lang.String getId()