ch.sahits.game.openpatrician.model.city
Enum ECityState
java.lang.Object
java.lang.Enum<ECityState>
ch.sahits.game.openpatrician.model.city.ECityState
- All Implemented Interfaces:
- Serializable, Comparable<ECityState>
public enum ECityState
- extends Enum<ECityState>
State of the city.
- Author:
- Andi Hotz, (c) Sahits GmbH, 2011
Created on Jan 16, 2011
|
Method Summary |
static ECityState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ECityState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
NORMAL
public static final ECityState NORMAL
FIRE
public static final ECityState FIRE
PLAGUE
public static final ECityState PLAGUE
SIEGE
public static final ECityState SIEGE
values
public static ECityState[] 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 (ECityState c : ECityState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ECityState 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
Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.