highscore.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef HIGHSCORE_H
00013 #define HIGHSCORE_H
00014
00015 #include "stdafx.h"
00016 #include "strings_type.h"
00017 #include "core/math_func.hpp"
00018 #include "company_type.h"
00019
00020 struct HighScore {
00021 char company[100];
00022 StringID title;
00023 uint16 score;
00024 };
00025
00026 extern HighScore _highscore_table[5][5];
00027
00028 void SaveToHighScore();
00029 void LoadFromHighScore();
00030 int8 SaveHighScoreValue(const Company *c);
00031 int8 SaveHighScoreValueNetwork();
00032 StringID EndGameGetPerformanceTitleFromValue(uint value);
00033 void ShowHighscoreTable(int difficulty, int8 rank);
00034
00035 #endif