xref: /csrg-svn/games/tetris/scores.h (revision 57288)
157272Sbostic /*-
257272Sbostic  * Copyright (c) 1992 The Regents of the University of California.
357272Sbostic  * All rights reserved.
457272Sbostic  *
5*57288Sbostic  * This code is derived from software contributed to Berkeley by
6*57288Sbostic  * Chris Torek and Darren F. Provine.
7*57288Sbostic  *
857272Sbostic  * %sccs.include.redist.c%
957272Sbostic  *
10*57288Sbostic  *	@(#)scores.h	5.2 (Berkeley) 12/23/92
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