Package com.starpoints.game
Enum GameMode
- java.lang.Object
-
- java.lang.Enum<GameMode>
-
- com.starpoints.game.GameMode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Finished
Game is finished.FlashFast
Flash animations to next galaxy are shown.FlashLevel
After level is over, the effects to introduce next level are performed.GameFinishedAnimation
Game finish animation is shown.GameOver
Game over texts are shown.LevelInfo
Level info is shown.LevelIntro
Level intro is shown.LevelOver
Level over texts are shown.LevelSelection
Level selection.LevelText
Level text is shown.None
None.Other
Not used in standard game.Replay
Replay is shown.RoundBeforeGettingMoves
Second parf of a round.RoundBeforeMoves
Third part of a round.RoundBeforeUpdate
Last part of a round.RoundBegin
First part of a round.Shop
Shop between to levels.
-
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.
-
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-