Enum ECityState
- java.lang.Object
-
- java.lang.Enum<ECityState>
-
- ch.sahits.game.openpatrician.model.city.impl.ECityState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ECityState>
public enum ECityState extends java.lang.Enum<ECityState>
Various city states.- Author:
- Andi Hotz, (c) Sahits GmbH, 2018 Created on Jan 13, 2018
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCKADEFIREFROZEN_HARBORPLAGUESIEGE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ECityStatevalueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
PLAGUE
public static final ECityState PLAGUE
-
SIEGE
public static final ECityState SIEGE
-
BLOCKADE
public static final ECityState BLOCKADE
-
FROZEN_HARBOR
public static final ECityState FROZEN_HARBOR
-
FIRE
public static final ECityState FIRE
-
-
Method Detail
-
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(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-