Rev 1419 | Rev 1590 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1419 | Rev 1466 | ||
|---|---|---|---|
| Line 36... | Line 36... | ||
| 36 | */ |
36 | */ |
| 37 | 37 | ||
| 38 | /* |
38 | /* |
| 39 | * Tetris scores. |
39 | * Tetris scores. |
| 40 | */ |
40 | */ |
| - | 41 | #include <sys/time.h> |
|
| - | 42 | #define MAXLOGNAME 10 |
|
| 41 | struct highscore { |
43 | struct highscore { |
| 42 | char hs_name[MAXLOGNAME]; /* login name */ |
44 | char hs_name[MAXLOGNAME]; /* login name */ |
| 43 | int hs_score; /* raw score */ |
45 | int hs_score; /* raw score */ |
| 44 | int hs_level; /* play level */ |
46 | int hs_level; /* play level */ |
| 45 | time_t hs_time; /* time at game end */ |
47 | time_t hs_time; /* time at game end */ |
| Line 47... | Line 49... | ||
| 47 | 49 | ||
| 48 | #define MAXHISCORES 80 |
50 | #define MAXHISCORES 80 |
| 49 | #define MAXSCORES 9 /* maximum high score entries per person */ |
51 | #define MAXSCORES 9 /* maximum high score entries per person */ |
| 50 | #define EXPIRATION (5L * 365 * 24 * 60 * 60) |
52 | #define EXPIRATION (5L * 365 * 24 * 60 * 60) |
| 51 | 53 | ||
| 52 | void savescore(int); |
54 | void savescore(int); |
| 53 | void showscores(int); |
55 | void showscores(int); |