xref: /csrg-svn/games/robots/extern.c (revision 21464)
1*21464Smckusick /*
2*21464Smckusick  * Copyright (c) 1980 Regents of the University of California.
3*21464Smckusick  * All rights reserved.  The Berkeley software License Agreement
4*21464Smckusick  * specifies the terms and conditions for redistribution.
5*21464Smckusick  */
6*21464Smckusick 
7*21464Smckusick #ifndef lint
8*21464Smckusick static char sccsid[] = "@(#)extern.c	5.1 (Berkeley) 05/30/85";
9*21464Smckusick #endif not lint
10*21464Smckusick 
11*21464Smckusick # include	"robots.h"
12*21464Smckusick 
13*21464Smckusick bool	Dead;			/* Player is now dead */
14*21464Smckusick bool	Full_clear = TRUE;	/* Lots of junk for init_field to clear */
15*21464Smckusick bool	Jump = FALSE;		/* Jump while running, counting, or waiting */
16*21464Smckusick bool	Newscore;		/* There was a new score added */
17*21464Smckusick #ifdef	FANCY
18*21464Smckusick bool	Pattern_roll = FALSE;	/* Auto play for YHBJNLUK pattern */
19*21464Smckusick #endif
20*21464Smckusick bool	Real_time = FALSE;	/* Play in real time? */
21*21464Smckusick bool	Running = FALSE;	/* Currently in the middle of a run */
22*21464Smckusick #ifdef	FANCY
23*21464Smckusick bool	Stand_still = FALSE;	/* Auto play for standing still pattern */
24*21464Smckusick #endif
25*21464Smckusick bool	Teleport = FALSE;	/* Teleport automatically when player must */
26*21464Smckusick bool	Waiting;		/* Player is waiting for end */
27*21464Smckusick bool	Was_bonus = FALSE;	/* Was a bonus last level */
28*21464Smckusick 
29*21464Smckusick char	Cnt_move;		/* Command which has preceded the count */
30*21464Smckusick char	Field[Y_FIELDSIZE][X_FIELDSIZE];	/* the playing field itslef */
31*21464Smckusick char	*Next_move;		/* Next move to be used in the pattern */
32*21464Smckusick char	*Move_list = "YHBJNLUK";/* List of moves in the pattern */
33*21464Smckusick char	Run_ch;			/* Character for the direction we are running */
34*21464Smckusick 
35*21464Smckusick int	Count = 0;		/* Command count */
36*21464Smckusick int	Level;			/* Current level */
37*21464Smckusick int	Num_robots;		/* Number of robots left */
38*21464Smckusick int	Num_scores;		/* Number of scores posted */
39*21464Smckusick int	Score;			/* Current score */
40*21464Smckusick int	Start_level = 1;	/* Level on which to start */
41*21464Smckusick int	Wait_bonus;		/* bonus for waiting */
42*21464Smckusick 
43*21464Smckusick COORD	Max;			/* Max area robots take up */
44*21464Smckusick COORD	Min;			/* Min area robots take up */
45*21464Smckusick COORD	My_pos;			/* Player's current position */
46*21464Smckusick COORD	Robots[MAXROBOTS];	/* Robots' current positions */
47*21464Smckusick 
48*21464Smckusick jmp_buf	End_move;		/* Jump to on Real_time */
49