| Modifier and Type | Class and Description |
|---|---|
static class |
CoreEvent.Constants |
| Enum Constant and Description |
|---|
CALL_UI |
GAME_PAUSE |
GAME_RESTART
Requests a restart of the game.
|
HIDE_SCREEN
Requests to hide the screen which emits this event.
|
OPTION_CHANGED
Indicates that a new language bundle has been loaded by the resource handler.
|
SWITCH_SCREEN
Requests a switch to the attached screen.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getId() |
EventType |
getType() |
static CoreEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CoreEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoreEvent SWITCH_SCREEN
public static final CoreEvent OPTION_CHANGED
public static final CoreEvent HIDE_SCREEN
public static final CoreEvent GAME_RESTART
public static final CoreEvent GAME_PAUSE
public static final CoreEvent CALL_UI
public static CoreEvent[] values()
for (CoreEvent c : CoreEvent.values()) System.out.println(c);
public static CoreEvent valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null