| Modifier and Type | Class and Description |
|---|---|
static class |
Rankings.gameOver |
static class |
Rankings.Record |
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DETAILS_FILE |
int |
happyWonNumber |
int |
lastRecord |
static java.lang.String |
RANKINGS_FILE |
java.util.ArrayList<Rankings.Record> |
records |
static int |
TABLE_SIZE |
int |
totalNumber |
int |
wonNumber |
| Modifier and Type | Method and Description |
|---|---|
void |
load() |
void |
save() |
void |
submit(Rankings.gameOver winLevel,
java.lang.String resultDescription) |
static Rankings |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Rankings[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rankings INSTANCE
public static final int TABLE_SIZE
public static final java.lang.String RANKINGS_FILE
public static final java.lang.String DETAILS_FILE
public java.util.ArrayList<Rankings.Record> records
public int lastRecord
public int totalNumber
public int wonNumber
public int happyWonNumber
public static Rankings[] values()
for (Rankings c : Rankings.values()) System.out.println(c);
public static Rankings 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 void submit(Rankings.gameOver winLevel, java.lang.String resultDescription)
public void save()
public void load()