mpcc ports hang with TS_BUSY; bug report 4.3BSD-tahoe/sys/23
[unix-history] / usr / src / games / robots / extern.c
CommitLineData
a0de618d
KM
1/*
2 * Copyright (c) 1980 Regents of the University of California.
4cd7a139
KB
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms are permitted
6 * provided that this notice is preserved and that due credit is given
7 * to the University of California at Berkeley. The name of the University
8 * may not be used to endorse or promote products derived from this
9 * software without specific prior written permission. This software
10 * is provided ``as is'' without express or implied warranty.
a0de618d
KM
11 */
12
13#ifndef lint
4cd7a139
KB
14static char sccsid[] = "@(#)extern.c 5.2 (Berkeley) %G%";
15#endif /* not lint */
a0de618d
KM
16
17# include "robots.h"
18
19bool Dead; /* Player is now dead */
20bool Full_clear = TRUE; /* Lots of junk for init_field to clear */
21bool Jump = FALSE; /* Jump while running, counting, or waiting */
22bool Newscore; /* There was a new score added */
23#ifdef FANCY
24bool Pattern_roll = FALSE; /* Auto play for YHBJNLUK pattern */
25#endif
26bool Real_time = FALSE; /* Play in real time? */
27bool Running = FALSE; /* Currently in the middle of a run */
28#ifdef FANCY
29bool Stand_still = FALSE; /* Auto play for standing still pattern */
30#endif
31bool Teleport = FALSE; /* Teleport automatically when player must */
32bool Waiting; /* Player is waiting for end */
33bool Was_bonus = FALSE; /* Was a bonus last level */
34
35char Cnt_move; /* Command which has preceded the count */
36char Field[Y_FIELDSIZE][X_FIELDSIZE]; /* the playing field itslef */
37char *Next_move; /* Next move to be used in the pattern */
38char *Move_list = "YHBJNLUK";/* List of moves in the pattern */
39char Run_ch; /* Character for the direction we are running */
40
41int Count = 0; /* Command count */
42int Level; /* Current level */
43int Num_robots; /* Number of robots left */
44int Num_scores; /* Number of scores posted */
45int Score; /* Current score */
46int Start_level = 1; /* Level on which to start */
47int Wait_bonus; /* bonus for waiting */
48
49COORD Max; /* Max area robots take up */
50COORD Min; /* Min area robots take up */
51COORD My_pos; /* Player's current position */
52COORD Robots[MAXROBOTS]; /* Robots' current positions */
53
54jmp_buf End_move; /* Jump to on Real_time */