public enum BattleAIMode extends java.lang.Enum<BattleAIMode>
| Enum Constant and Description |
|---|
ADVANCED |
AGGRESSIVE |
DEFAULT |
RANDOM |
TACTICAL |
| Modifier and Type | Method and Description |
|---|---|
BattleAIBase |
createAI(BattleParticipant participant)
Creates a new AI corresponding to the mode.
|
static BattleAIMode |
getFromIndex(int index)
Gets an AI mode from its enum index.
|
java.lang.String |
getLocalizedName()
Gets the localized name of the AI mode.
|
BattleAIMode |
getNextMode()
Gets the next AI mode in order.
|
static BattleAIMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BattleAIMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BattleAIMode DEFAULT
public static final BattleAIMode RANDOM
public static final BattleAIMode AGGRESSIVE
public static final BattleAIMode TACTICAL
public static final BattleAIMode ADVANCED
public static BattleAIMode[] values()
for (BattleAIMode c : BattleAIMode.values()) System.out.println(c);
public static BattleAIMode 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 BattleAIMode getFromIndex(int index)
index - The index of the AI mode to get.public BattleAIMode getNextMode()
public BattleAIBase createAI(BattleParticipant participant)
participant - The participant to initialize an AI for.public java.lang.String getLocalizedName()