battlecode.common
Enum Upgrade

java.lang.Object
  extended by java.lang.Enum<Upgrade>
      extended by battlecode.common.Upgrade
All Implemented Interfaces:
Serializable, Comparable<Upgrade>

public enum Upgrade
extends Enum<Upgrade>


Enum Constant Summary
DEFUSION
           
FUSION
           
NUKE
           
PICKAXE
           
VISION
           
 
Field Summary
 int numRounds
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Field Detail

numRounds

public final int numRounds
Method Detail

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