xref: /original-bsd/games/tetris/scores.h (revision a043e977)
1 /*-
2  * Copyright (c) 1992 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Chris Torek and Darren F. Provine.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)scores.h	5.2 (Berkeley) 12/23/92
11  */
12 
13 /*
14  * Tetris scores.
15  */
16 struct highscore {
17 	char	hs_name[20];	/* login name */
18 	int	hs_score;	/* raw score */
19 	int	hs_level;	/* play level */
20 	time_t	hs_time;	/* time at game end */
21 };
22 
23 #define MAXHISCORES	80
24 #define MAXSCORES	9	/* maximum high score entries per person */
25 #define	EXPIRATION	(5L * 365 * 24 * 60 * 60)
26 
27 void	savescore __P((int));
28 void	showscores __P((int));
29