public class Highscore extends Object implements Iterable<HighscoreEntry>, Serializable
Constructor and Description |
---|
Highscore() |
Modifier and Type | Method and Description |
---|---|
void |
addScore(HighscoreEntry score)
Add score to this highscore.
|
int |
getMaximumScores() |
HighscoreEntry |
getScore(int index)
Get Highscore at specific positon
|
int |
getScoreCount()
Get the score count
|
Iterator<HighscoreEntry> |
iterator() |
void |
setMaximumScores(int maximumScores) |
protected void |
updateList() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void addScore(HighscoreEntry score)
score
- The score to be addedpublic int getMaximumScores()
public void setMaximumScores(int maximumScores)
public HighscoreEntry getScore(int index)
index
- index of wanted highscoreHighscoreEntry
public int getScoreCount()
protected void updateList()
public Iterator<HighscoreEntry> iterator()
iterator
in interface Iterable<HighscoreEntry>
Copyright © 2017. All rights reserved.