battlecode.common
public enum Upgrade extends Enum<Upgrade>
| Enum Constant and Description |
|---|
DEFUSION |
FUSION |
NUKE |
PICKAXE |
VISION |
| Modifier and Type | Field and Description |
|---|---|
int |
numRounds |
| Modifier and Type | Method and Description |
|---|---|
static Upgrade |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Upgrade[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Upgrade FUSION
public static final Upgrade VISION
public static final Upgrade DEFUSION
public static final Upgrade PICKAXE
public static final Upgrade NUKE
public static Upgrade[] values()
for (Upgrade c : Upgrade.values()) System.out.println(c);
public static Upgrade valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null