java.lang.Object HighScore
public class HighScore
Field Summary | |
---|---|
(package private) java.lang.String |
id
|
Constructor Summary | |
---|---|
HighScore(java.lang.String id)
|
Method Summary | |
---|---|
java.lang.String |
clearScores()
Erase all scores, probably for testing purposes. |
double |
getHighScore()
Gets the high score |
java.lang.String |
getHighScoreName()
Returns who has the high score, if its set |
java.lang.String |
setScore(double score)
Set score (not giving a name) and returns rank like 5/8 |
java.lang.String |
setScore(double score,
java.lang.String name)
Set score with name and returns rank like 5/8 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.String id
Constructor Detail |
---|
public HighScore(java.lang.String id)
Method Detail |
---|
public java.lang.String clearScores()
public double getHighScore()
public java.lang.String getHighScoreName()
public java.lang.String setScore(double score)
public java.lang.String setScore(double score, java.lang.String name)