|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavoids.ScoreEntry
class ScoreEntry
A class for holding the high score information of one entry of the high score table.
| Field Summary | |
|---|---|
(package private) java.lang.String |
duration
plaey's duration of play |
(package private) java.lang.String |
level
player's level reched |
(package private) java.lang.String |
name
player's name |
(package private) java.lang.String |
score
player's score |
| Constructor Summary | |
|---|---|
ScoreEntry(java.lang.String _name,
java.lang.String _score,
java.lang.String _duration,
java.lang.String _level)
|
|
| Method Summary | |
|---|---|
int |
compareTo(ScoreEntry scoreEntry)
Compare one score entry to another. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.lang.String name
java.lang.String score
java.lang.String duration
java.lang.String level
| Constructor Detail |
|---|
ScoreEntry(java.lang.String _name,
java.lang.String _score,
java.lang.String _duration,
java.lang.String _level)
_name - the player's name_score - the player's score_duration - the duration of play_level - the level reached| Method Detail |
|---|
public int compareTo(ScoreEntry scoreEntry)
compareTo in interface java.lang.Comparable<ScoreEntry>scoreEntry - the other score entry to compare this score entry to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||