summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'player.h')
-rw-r--r--player.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/player.h b/player.h
index fb2d2b0d3..a205b4fdf 100644
--- a/player.h
+++ b/player.h
@@ -201,4 +201,15 @@ VARDEF Player _players[MAX_PLAYERS];
#define IS_HUMAN_PLAYER(p) (!DEREF_PLAYER((byte)(p))->is_ai)
#define IS_INTERACTIVE_PLAYER(p) (((byte)p) == _local_player)
+typedef struct HighScore {
+ char company[100];
+ StringID title;
+ uint16 score;
+} HighScore;
+
+VARDEF HighScore _highscore_table[4][5]; // 4 difficulty-settings; top 5
+void SaveToHighScore(void);
+void LoadFromHighScore(void);
+int SaveHighScoreValue(const Player *p);
+
#endif /* PLAYER_H */