Enum GameMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<GameMode>

    public enum GameMode
    extends java.lang.Enum<GameMode>
    The states during game.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static GameMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static GameMode[] 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

      • None

        public static final GameMode None
        None.
      • LevelSelection

        public static final GameMode LevelSelection
        Level selection.
      • LevelInfo

        public static final GameMode LevelInfo
        Level info is shown.
      • LevelText

        public static final GameMode LevelText
        Level text is shown.
      • LevelIntro

        public static final GameMode LevelIntro
        Level intro is shown.
      • RoundBegin

        public static final GameMode RoundBegin
        First part of a round. Nothing happens in this part.
      • RoundBeforeGettingMoves

        public static final GameMode RoundBeforeGettingMoves
        Second parf of a round. Moves are retrieved during this phase.
      • RoundBeforeMoves

        public static final GameMode RoundBeforeMoves
        Third part of a round. Figure and item moves and item usages are handled in this phase.
      • RoundBeforeUpdate

        public static final GameMode RoundBeforeUpdate
        Last part of a round. Field and things are updated in this round. Energy changes are handled.
      • LevelOver

        public static final GameMode LevelOver
        Level over texts are shown.
      • GameOver

        public static final GameMode GameOver
        Game over texts are shown.
      • FlashLevel

        public static final GameMode FlashLevel
        After level is over, the effects to introduce next level are performed.
      • Finished

        public static final GameMode Finished
        Game is finished. Causes game control to switch back to main menu.
      • Replay

        public static final GameMode Replay
        Replay is shown.
      • FlashFast

        public static final GameMode FlashFast
        Flash animations to next galaxy are shown.
      • Shop

        public static final GameMode Shop
        Shop between to levels. Inserted while during FlashLevel.
      • GameFinishedAnimation

        public static final GameMode GameFinishedAnimation
        Game finish animation is shown.
      • Other

        public static final GameMode Other
        Not used in standard game.
    • Method Detail

      • values

        public static GameMode[] 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 (GameMode c : GameMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GameMode 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