xref: /csrg-svn/games/robots/extern.c (revision 60840)
121464Smckusick /*
2*60840Sbostic  * Copyright (c) 1980, 1993
3*60840Sbostic  *	The Regents of the University of California.  All rights reserved.
433690Sbostic  *
542589Sbostic  * %sccs.include.redist.c%
621464Smckusick  */
721464Smckusick 
821464Smckusick #ifndef lint
9*60840Sbostic static char sccsid[] = "@(#)extern.c	8.1 (Berkeley) 05/31/93";
1033690Sbostic #endif /* not lint */
1121464Smckusick 
1221464Smckusick # include	"robots.h"
1321464Smckusick 
1421464Smckusick bool	Dead;			/* Player is now dead */
1521464Smckusick bool	Full_clear = TRUE;	/* Lots of junk for init_field to clear */
1621464Smckusick bool	Jump = FALSE;		/* Jump while running, counting, or waiting */
1721464Smckusick bool	Newscore;		/* There was a new score added */
1821464Smckusick #ifdef	FANCY
1921464Smckusick bool	Pattern_roll = FALSE;	/* Auto play for YHBJNLUK pattern */
2021464Smckusick #endif
2121464Smckusick bool	Real_time = FALSE;	/* Play in real time? */
2221464Smckusick bool	Running = FALSE;	/* Currently in the middle of a run */
2321464Smckusick #ifdef	FANCY
2421464Smckusick bool	Stand_still = FALSE;	/* Auto play for standing still pattern */
2521464Smckusick #endif
2621464Smckusick bool	Teleport = FALSE;	/* Teleport automatically when player must */
2721464Smckusick bool	Waiting;		/* Player is waiting for end */
2821464Smckusick bool	Was_bonus = FALSE;	/* Was a bonus last level */
2921464Smckusick 
3021464Smckusick char	Cnt_move;		/* Command which has preceded the count */
3121464Smckusick char	Field[Y_FIELDSIZE][X_FIELDSIZE];	/* the playing field itslef */
3221464Smckusick char	*Next_move;		/* Next move to be used in the pattern */
3321464Smckusick char	*Move_list = "YHBJNLUK";/* List of moves in the pattern */
3421464Smckusick char	Run_ch;			/* Character for the direction we are running */
3521464Smckusick 
3621464Smckusick int	Count = 0;		/* Command count */
3721464Smckusick int	Level;			/* Current level */
3821464Smckusick int	Num_robots;		/* Number of robots left */
3921464Smckusick int	Num_scores;		/* Number of scores posted */
4021464Smckusick int	Score;			/* Current score */
4121464Smckusick int	Start_level = 1;	/* Level on which to start */
4221464Smckusick int	Wait_bonus;		/* bonus for waiting */
4321464Smckusick 
4421464Smckusick COORD	Max;			/* Max area robots take up */
4521464Smckusick COORD	Min;			/* Min area robots take up */
4621464Smckusick COORD	My_pos;			/* Player's current position */
4721464Smckusick COORD	Robots[MAXROBOTS];	/* Robots' current positions */
4821464Smckusick 
4921464Smckusick jmp_buf	End_move;		/* Jump to on Real_time */
50