public enum AIRegistry extends java.lang.Enum<AIRegistry>
Enum Constant and Description |
---|
ELAINA
Elaina, a greedy AI that maximises the relative area
gain in a specific part of the map.
|
ISLA
Isla, a greedy AI that maximises relative area gain.
|
SHIRO
Shiro, a greedy AI that maximises the relative area
gain in a specific part of the map from a small object.
|
Modifier and Type | Field and Description |
---|---|
private java.util.function.Supplier<Player> |
ctor
The construct for this AI.
|
private java.lang.String |
name
The name of this AI.
|
Modifier and Type | Method and Description |
---|---|
Player |
createInstance()
Creates a new instance of this AI.
|
java.lang.String |
getName()
Gets the name of this AI.
|
static AIRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AIRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AIRegistry ISLA
public static final AIRegistry ELAINA
public static final AIRegistry SHIRO
private java.lang.String name
private java.util.function.Supplier<Player> ctor
public static AIRegistry[] values()
for (AIRegistry c : AIRegistry.values()) System.out.println(c);
public static AIRegistry 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 Player createInstance()
public java.lang.String getName()