OpenTTD
|
Declaration of functions and types defined in highscore.h and highscore_gui.h. More...
Go to the source code of this file.
Data Structures | |
struct | HighScore |
Functions | |
void | SaveToHighScore () |
Save HighScore table to file. | |
void | LoadFromHighScore () |
Initialize the highscore table to 0 and if any file exists, load in values. | |
int8 | SaveHighScoreValue (const Company *c) |
Save the highscore for the company. | |
int8 | SaveHighScoreValueNetwork () |
Save the highscores in a network game when it has ended. More... | |
StringID | EndGameGetPerformanceTitleFromValue (uint value) |
void | ShowHighscoreTable (int difficulty=SP_CUSTOM, int8 rank=-1) |
Show the highscore table for a given difficulty. More... | |
Variables | |
HighScore | _highscore_table [SP_HIGHSCORE_END][5] |
various difficulty-settings; top 5 | |
Declaration of functions and types defined in highscore.h and highscore_gui.h.
Definition in file highscore.h.
int8 SaveHighScoreValueNetwork | ( | ) |
Save the highscores in a network game when it has ended.
Definition at line 91 of file highscore.cpp.
References MAX_COMPANIES.
void ShowHighscoreTable | ( | int | difficulty, |
int8 | ranking | ||
) |
Show the highscore table for a given difficulty.
When called from endgame ranking is set to the top5 element that was newly added and is thus highlighted
Definition at line 231 of file highscore_gui.cpp.
References DeleteWindowByClass(), and WC_HIGHSCORE.