Enum EObjective
- java.lang.Object
-
- java.lang.Enum<EObjective>
-
- ch.sahits.game.openpatrician.model.EObjective
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EObjective>
public enum EObjective extends java.lang.Enum<EObjective>
Enumaration defining the games objectives- Author:
- Andi Hotz, (c) Sahits GmbH, 2011 Created on Jun 12, 2011
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALDERMAN_2_YEAR
Alderman in 2 yearsALDERMAN_3_YEAR
Alderman in 3 yearsALDERMAN_5_YEAR
Alderman in 5 yearsBUSINESSVALUE_100M
Businessvalue 100'000'000BUSINESSVALUE_10M
Businessvalue 10'000'000BUSINESSVALUE_1M
Businessvalue 1'000'000ENDLESS
Endless gameMAYOR_1_YEAR
Mayor in 1 yearMAYOR_2_YEAR
Mayor in 2 yearsMAYOR_3_YEAR
Mayor in 3 years
-
Constructor Summary
Constructors Modifier Constructor Description private
EObjective()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EObjective
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EObjective[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENDLESS
public static final EObjective ENDLESS
Endless game
-
MAYOR_1_YEAR
public static final EObjective MAYOR_1_YEAR
Mayor in 1 year
-
MAYOR_2_YEAR
public static final EObjective MAYOR_2_YEAR
Mayor in 2 years
-
MAYOR_3_YEAR
public static final EObjective MAYOR_3_YEAR
Mayor in 3 years
-
ALDERMAN_2_YEAR
public static final EObjective ALDERMAN_2_YEAR
Alderman in 2 years
-
ALDERMAN_3_YEAR
public static final EObjective ALDERMAN_3_YEAR
Alderman in 3 years
-
ALDERMAN_5_YEAR
public static final EObjective ALDERMAN_5_YEAR
Alderman in 5 years
-
BUSINESSVALUE_1M
public static final EObjective BUSINESSVALUE_1M
Businessvalue 1'000'000
-
BUSINESSVALUE_10M
public static final EObjective BUSINESSVALUE_10M
Businessvalue 10'000'000
-
BUSINESSVALUE_100M
public static final EObjective BUSINESSVALUE_100M
Businessvalue 100'000'000
-
-
Method Detail
-
values
public static EObjective[] 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 (EObjective c : EObjective.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EObjective 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
-
-