public enum MessageDialog extends java.lang.Enum<MessageDialog>
Enum Constant and Description |
---|
ALREADY_OWNED
Shown when the player tries to claim an object that was
previously already claimed by a different player.
|
GAME_END
Shown when the player tries to perform a move after the game ended.
|
MERGE_INTERSECTS
Shown when a merge attempted by the player intersects
other objects on its boundary.
|
NO_TURN
Shown when the player tries to perform a move when it's not their turn.
|
NOT_READY
Shown when the game state is not ready to handle the next player action.
|
QUIT
Shown when the player presses the menu button.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
message
The message for this dialog.
|
private java.lang.String |
title
The title for this dialog.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getMessage()
Gets the feedback message for this dialog.
|
java.lang.String |
getTitle()
Gets the title for this dialog.
|
static MessageDialog |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageDialog[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageDialog ALREADY_OWNED
public static final MessageDialog MERGE_INTERSECTS
public static final MessageDialog NO_TURN
public static final MessageDialog GAME_END
public static final MessageDialog QUIT
public static final MessageDialog NOT_READY
private final java.lang.String title
private final java.util.List<java.lang.String> message
public static MessageDialog[] values()
for (MessageDialog c : MessageDialog.values()) System.out.println(c);
public static MessageDialog 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 java.lang.String getTitle()
public java.util.List<java.lang.String> getMessage()