|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.testgame.model.HighscoreTable
Contains the data of the in game score table. This is created from the score data that the server transmit each time the score changes.
Constructor Summary | |
HighscoreTable()
|
Method Summary | |
void |
addLine(PlayerInfo pi)
Adds a complete line to the table, i.e. the player's name, the number of frags he/she has and the number of deaths. |
void |
addLineEntry(InfoLine il)
Adds a new entry to the table. |
void |
addToContainer(InfoDataContainer dc)
Adds the table's content to an existing container. |
void |
clear()
Clears the table |
DataContainer |
getContainer()
Creates a DataContainer from the table's content that can be transfered via the network. |
int |
getFrags(int i)
Gets the number of frags in i-th line. |
int |
getKilled(int i)
Gets the number of deaths in i-th line. |
int |
getLineCount()
Returns the number of lines in the table. |
java.lang.String |
getPlayerName(int i)
Gets the name of the player in i-th line. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HighscoreTable()
Method Detail |
public void clear()
public void addLineEntry(InfoLine il)
il
- the entrypublic void addLine(PlayerInfo pi)
pi
- the PlayerInfo for that playerpublic int getLineCount()
public java.lang.String getPlayerName(int i)
i
- the line number
public int getFrags(int i)
i
- the line number
public int getKilled(int i)
i
- the line number
public DataContainer getContainer()
public void addToContainer(InfoDataContainer dc)
dc
- the container
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |