| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor() |
java.lang.String |
getName() |
static BoardCell |
getNonEmptyRandomBoardCell(java.util.Random random)
Generates a random BoardCell using the specified Random object.
|
static int |
getTotalColors() |
static BoardCell |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BoardCell[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BoardCell RED
public static final BoardCell GREEN
public static final BoardCell BLUE
public static final BoardCell YELLOW
public static final BoardCell EMPTY
public static BoardCell[] values()
for (BoardCell c : BoardCell.values()) System.out.println(c);
public static BoardCell 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.awt.Color getColor()
public java.lang.String getName()
public static int getTotalColors()
public static BoardCell getNonEmptyRandomBoardCell(java.util.Random random)
random -