Compounds | |
struct | SScore |
A single entry on the high score list. More... | |
Defines | |
#define | FILE_HIGHSCORES "hiscores.dat" |
Default high score list file. | |
#define | MAX_HIGHSCORES 10 |
Maximum size of high score list. | |
#define | FILE_IMG_HIGHSCORES "data/hiscores.tga" |
High-scores background "skin" (image file). | |
Functions | |
void | ShowHighScores () |
Display high scores. | |
bool | LoadHighScores (const char *szFilename=FILE_HIGHSCORES) |
Load high scores from given file. | |
bool | SaveHighScores (const char *szFilename=FILE_HIGHSCORES) |
Save high scores to given file. | |
bool | IsNewHighScore (int nScore) |
Test if the given score will make the high score list. | |
void | AddHighScore (const char *szName, int nScore) |
Add a new entry to the list, automatically sorted. Before calling this, use IsNewHighScore() to see if you should. | |
void | GetHighScore (int nIndex, SScore &Score) |
Get high score at a particular index. Always succeeds if index is in range [0, MAX_HIGHSCORES). |
http://www.scorpioncity.com/djgame.html Copyright (C) David Joffe. Generated: 15 Jul 2001 |