public enum Aggression extends java.lang.Enum<Aggression> implements ITranslatable
Enum Constant and Description |
---|
AGGRESSIVE |
PASSIVE |
TIMID |
Modifier and Type | Method and Description |
---|---|
static Aggression |
getAggression(int index)
Gets a type of aggression.
|
java.lang.String |
getLocalizedName()
Returns the localized name of the aggression mode.
|
Aggression |
getNext()
Gets the next logical Aggression
|
java.lang.String |
getTranslationKey() |
static Aggression |
nextAggression(Aggression aggression)
Returns the next aggression (in enum index order) from the given one.
|
static Aggression |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Aggression[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getTranslatedName
public static final Aggression TIMID
public static final Aggression PASSIVE
public static final Aggression AGGRESSIVE
public static Aggression[] values()
for (Aggression c : Aggression.values()) System.out.println(c);
public static Aggression 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 Aggression getNext()
public static Aggression getAggression(int index)
index
- The index of the aggression.public static Aggression nextAggression(Aggression aggression)
aggression
- The aggression to find the next aggression from.public java.lang.String getLocalizedName()
getLocalizedName
in interface ITranslatable
public java.lang.String getTranslationKey()
getTranslationKey
in interface ITranslatable