| Modifier and Type | Class and Description |
|---|---|
static class |
Event.EventType |
| 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 |
|---|---|
Event.EventType |
getType() |
static Event |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Event[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Event SWITCH_SCREEN
public static final Event OPTION_CHANGED
public static final Event HIDE_SCREEN
public static final Event GAME_RESTART
public static final Event GAME_PAUSE
public static final Event CALL_UI
public static Event[] values()
for (Event c : Event.values()) System.out.println(c);
public static Event 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 nullpublic Event.EventType getType()