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