public enum ObjectiveType extends java.lang.Enum<ObjectiveType>
Modifier and Type | Method and Description |
---|---|
static ObjectiveType |
fromString(java.lang.String typeName)
Converts specified objective type name to objective type enumeration
|
static ObjectiveType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ObjectiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObjectiveType TALK
public static final ObjectiveType KILL
public static final ObjectiveType GATHER
public static final ObjectiveType VISIT
public static ObjectiveType[] values()
for (ObjectiveType c : ObjectiveType.values()) System.out.println(c);
public static ObjectiveType 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 ObjectiveType fromString(java.lang.String typeName)
typeName
- String with objective type name