Definition at line 48 of file HighscoreModel.h.
Public Member Functions | |
Construction / Destruction | |
HighscoreModel (void *highscoreState) | |
Construct the model from a save-state. | |
~HighscoreModel () | |
Destroy the model. | |
Logic | |
Boolean | isHighscore (UInt32 score) |
Return whether the supplied score qualifies as a highscore. | |
void | addHighscore (UInt32 score, Char *name=NULL) |
Add the highscore to the highscore table. | |
UInt8 | getNumHighScores () |
Get the number of highscores in the highscore table. | |
HighscoreEntry & | getEntry (UInt8 index) |
Get the nth entry from the highscore table. | |
Static Public Member Functions | |
Persistence | |
StateDescriptor * | createStateDescriptor () |
Return a descriptor for a freshly initialized state. |
|
Construct the model from a save-state.
|
|
Destroy the model.
|
|
Return whether the supplied score qualifies as a highscore.
|
|
Add the highscore to the highscore table. If the number of highscores exceeds the limit, the lowest existing highscore will be discarded. |
|
Get the number of highscores in the highscore table.
|
|
Get the nth entry from the highscore table.
|
|
Return a descriptor for a freshly initialized state.
|