public enum Recommendation extends Enum<Recommendation>
Enum Constant and Description |
---|
DISCARD_SLOT_1 |
DISCARD_SLOT_2 |
DISCARD_SLOT_3 |
DISCARD_SLOT_4 |
PLAY_SLOT_1 |
PLAY_SLOT_2 |
PLAY_SLOT_3 |
PLAY_SLOT_4 |
Modifier and Type | Field and Description |
---|---|
Action |
recommended |
Modifier and Type | Method and Description |
---|---|
static Recommendation |
discardSlot(int slot) |
static Action |
encode(Recommendation recommendation,
int myID,
GameState state) |
boolean |
isDiscard() |
boolean |
isPlay() |
static Recommendation |
playSlot(int slot) |
static Recommendation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Recommendation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Recommendation PLAY_SLOT_1
public static final Recommendation PLAY_SLOT_2
public static final Recommendation PLAY_SLOT_3
public static final Recommendation PLAY_SLOT_4
public static final Recommendation DISCARD_SLOT_1
public static final Recommendation DISCARD_SLOT_2
public static final Recommendation DISCARD_SLOT_3
public static final Recommendation DISCARD_SLOT_4
public final Action recommended
public static Recommendation[] values()
for (Recommendation c : Recommendation.values()) System.out.println(c);
public static Recommendation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Action encode(Recommendation recommendation, int myID, GameState state)
public static Recommendation playSlot(int slot)
public static Recommendation discardSlot(int slot)
public boolean isPlay()
public boolean isDiscard()
Copyright © 2017 FOSS Galaxy. All rights reserved.