ch.sahits.game.openpatrician.model
Enum EObjective

java.lang.Object
  extended by java.lang.Enum<EObjective>
      extended by ch.sahits.game.openpatrician.model.EObjective
All Implemented Interfaces:
Serializable, Comparable<EObjective>

public enum EObjective
extends Enum<EObjective>

Enumaration defining the games objectives

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Jun 12, 2011

Enum Constant Summary
BUSINESSVALUE_100M
          Businessvalue 100'000'000
BUSINESSVALUE_10M
          Businessvalue 10'000'000
BUSINESSVALUE_1M
          Businessvalue 1'000'000
ELDERMAN_2_YEAR
          Elderman in 2 years
ELDERMAN_3_YEAR
          Elderman in 3 years
ELDERMAN_5_YEAR
          Elderman in 5 years
ENDLESS
          Endless game
MAYOR_1_YEAR
          Mayor in 1 year
MAYOR_2_YEAR
          Mayor in 2 years
MAYOR_3_YEAR
          Mayor in 3 years
 
Method Summary
static EObjective valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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


ELDERMAN_2_YEAR

public static final EObjective ELDERMAN_2_YEAR
Elderman in 2 years


ELDERMAN_3_YEAR

public static final EObjective ELDERMAN_3_YEAR
Elderman in 3 years


ELDERMAN_5_YEAR

public static final EObjective ELDERMAN_5_YEAR
Elderman 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(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.