battlecode.common
Enum Upgrade
java.lang.Object
java.lang.Enum<Upgrade>
battlecode.common.Upgrade
- All Implemented Interfaces:
- Serializable, Comparable<Upgrade>
public enum Upgrade
- extends Enum<Upgrade>
Method Summary |
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. |
FUSION
public static final Upgrade FUSION
Rounds: 25
VISION
public static final Upgrade VISION
Rounds: 25
DEFUSION
public static final Upgrade DEFUSION
Rounds: 25
PICKAXE
public static final Upgrade PICKAXE
Rounds: 25
NUKE
public static final Upgrade NUKE
Rounds: 404
numRounds
public final int numRounds
values
public static Upgrade[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Upgrade c : Upgrade.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Upgrade valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null