|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.jetrix.winlist.SimpleWinlist
net.jetrix.winlist.TetrixWinlist
public class TetrixWinlist
A winlist caompatible with the tetrinetx winlist format.
| Field Summary | |
|---|---|
static int |
DEFAULT_WINLIST_SIZE
|
static int |
STRUCT_SIZE
|
| Fields inherited from class net.jetrix.winlist.SimpleWinlist |
|---|
config, initialized, log, persistent, scores |
| Constructor Summary | |
|---|---|
TetrixWinlist()
|
|
| Method Summary | |
|---|---|
protected Score |
buildScore(byte[] struct)
Build a score from a tetrix winlist structure. |
protected byte[] |
buildStruct(Score score)
Build a tetrix winlist structure from a score. |
void |
init(WinlistConfig config)
Initialize the winlist. |
protected void |
load()
Load the winlist from a file. |
protected void |
save()
Save the winlist to a file. |
| Methods inherited from class net.jetrix.winlist.SimpleWinlist |
|---|
clear, getConfig, getGainMessage, getId, getScore, getScores, isPersistent, saveGameResult, setId, setPersistent, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STRUCT_SIZE
public static final int DEFAULT_WINLIST_SIZE
| Constructor Detail |
|---|
public TetrixWinlist()
| Method Detail |
|---|
public void init(WinlistConfig config)
Winlist
init in interface Winlistinit in class SimpleWinlistconfig - the winlist configurationprotected void load()
SimpleWinlist
load in class SimpleWinlistprotected void save()
SimpleWinlist
save in class SimpleWinlistprotected Score buildScore(byte[] struct)
protected byte[] buildStruct(Score score)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||