xref: /csrg-svn/games/tetris/scores.h (revision 60854)
157272Sbostic /*-
2*60854Sbostic  * Copyright (c) 1992, 1993
3*60854Sbostic  *	The Regents of the University of California.  All rights reserved.
457272Sbostic  *
557288Sbostic  * This code is derived from software contributed to Berkeley by
657288Sbostic  * Chris Torek and Darren F. Provine.
757288Sbostic  *
857272Sbostic  * %sccs.include.redist.c%
957272Sbostic  *
10*60854Sbostic  *	@(#)scores.h	8.1 (Berkeley) 05/31/93
1157272Sbostic  */
1257272Sbostic 
1357272Sbostic /*
1457272Sbostic  * Tetris scores.
1557272Sbostic  */
1657272Sbostic struct highscore {
1757272Sbostic 	char	hs_name[20];	/* login name */
1857272Sbostic 	int	hs_score;	/* raw score */
1957272Sbostic 	int	hs_level;	/* play level */
2057272Sbostic 	time_t	hs_time;	/* time at game end */
2157272Sbostic };
2257272Sbostic 
2357272Sbostic #define MAXHISCORES	80
2457272Sbostic #define MAXSCORES	9	/* maximum high score entries per person */
2557272Sbostic #define	EXPIRATION	(5L * 365 * 24 * 60 * 60)
2657272Sbostic 
2757272Sbostic void	savescore __P((int));
2857272Sbostic void	showscores __P((int));
29