public enum PokerusStrain extends java.lang.Enum<PokerusStrain>
Enum Constant and Description |
---|
A |
B |
C |
D |
UNINFECTED |
Modifier and Type | Method and Description |
---|---|
int |
getDuration()
Gets the duration in seconds
|
static PokerusStrain |
getRandomType()
Gets a random strain of the Pokerus virus
|
static PokerusStrain |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PokerusStrain[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PokerusStrain UNINFECTED
public static final PokerusStrain A
public static final PokerusStrain B
public static final PokerusStrain C
public static final PokerusStrain D
public static PokerusStrain[] values()
for (PokerusStrain c : PokerusStrain.values()) System.out.println(c);
public static PokerusStrain 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 int getDuration()
public static PokerusStrain getRandomType()