|
OpenTTD Source
1.10.0-RC1
|
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 88 of file highscore.cpp.
References HighScoreSorter(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::Iterate(), lengthof, MAX_COMPANIES, SetDParam(), and SP_MULTIPLAYER.
| 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 230 of file highscore_gui.cpp.
References DeleteWindowByClass(), and WC_HIGHSCORE.