1 /* 2 * xtrojka (c) 1994,1995,1996 Maarten Los 3 * 4 * #include "COPYRIGHT" 5 * 6 * created: 12.iii.1996 7 * modified: 8 * 9 * header file for scores.c 10 */ 11 12 #ifndef _scores_h_ 13 #define _scores_h_ 14 15 #include "xtrojka.h" 16 17 /* 18 * lock file should be shared, if the highscore file is shared 19 */ 20 #define LOCKFILE "/tmp/xtrojka.lock" 21 22 23 #define NUMSCORES 10 24 25 typedef struct { 26 int user; 27 char wizard; 28 char host[20]; 29 unsigned long score; 30 unsigned long date; 31 int speed; 32 } SCORES; 33 34 35 #define NO_SCORE 0 36 37 38 /* 39 * function prototypes 40 */ 41 void init_scores(void); 42 void do_hiscores(void); 43 flag is_hiscore(void); 44 void shift_scores(void); 45 void read_scores(void); 46 void write_scores(void); 47 void create_scorefile(void); 48 void show_scores_offline(void); 49 50 #endif /* _scores_h_ */ 51