Enum Class KaiserEngine.GameState

java.lang.Object
java.lang.Enum<KaiserEngine.GameState>
de.aikiit.game.kaiser.KaiserEngine.GameState
All Implemented Interfaces:
Serializable, Comparable<KaiserEngine.GameState>, Constable
Enclosing class:
KaiserEngine

public static enum KaiserEngine.GameState extends Enum<KaiserEngine.GameState>
Describes whether further annual updates and player actions are permitted.
  • Enum Constant Details

    • RUNNING

      public static final KaiserEngine.GameState RUNNING
      The reign is in progress and the caller may advance the game.
    • COMPLETED

      public static final KaiserEngine.GameState COMPLETED
      The ten action years and the final year-start update have completed.
    • DISMISSED

      public static final KaiserEngine.GameState DISMISSED
      More than 45 percent of the population starved in one year.
    • ABORTED

      public static final KaiserEngine.GameState ABORTED
      The player or console input ended the game before completion.
  • Method Details

    • values

      public static KaiserEngine.GameState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static KaiserEngine.GameState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null