public enum SiloState extends Enum<SiloState> implements IState
Enum Constant and Description |
---|
AIR_DEFENSE |
NUKE |
Modifier and Type | Field and Description |
---|---|
int |
id |
Modifier and Type | Method and Description |
---|---|
Enum<? extends IState> |
getEnum() |
static SiloState |
getState(int stateId) |
int |
getStateId()
Returns state of id.
|
static SiloState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SiloState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SiloState NUKE
public static final SiloState AIR_DEFENSE
public static SiloState[] values()
for (SiloState c : SiloState.values()) System.out.println(c);
public static SiloState 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 nullpublic static SiloState getState(int stateId)
public int getStateId()
IState
getStateId
in interface IState
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.