highscore.h

Go to the documentation of this file.
00001 /* $Id: highscore.h 14815 2009-01-03 18:44:20Z smatz $ */
00002 
00005 #ifndef HIGHSCORE_H
00006 #define HIGHSCORE_H
00007 
00008 #include "stdafx.h"
00009 #include "strings_type.h"
00010 #include "core/math_func.hpp"
00011 #include "company_type.h"
00012 
00013 struct HighScore {
00014   char company[100];
00015   StringID title; 
00016   uint16 score;   
00017 };
00018 
00019 extern HighScore _highscore_table[5][5]; // 4 difficulty-settings (+ network); top 5
00020 
00021 void SaveToHighScore();
00022 void LoadFromHighScore();
00023 int8 SaveHighScoreValue(const Company *c);
00024 int8 SaveHighScoreValueNetwork();
00025 StringID EndGameGetPerformanceTitleFromValue(uint value);
00026 void ShowHighscoreTable(int difficulty, int8 rank);
00027 
00028 #endif /* HIGHSCORE_H */

Generated on Tue Jul 21 18:48:23 2009 for OpenTTD by  doxygen 1.5.6