Enum 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 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
    • Constructor Detail

      • EObjective

        private EObjective()
    • 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 name
        java.lang.NullPointerException - if the argument is null