Commit | Line | Data |
---|---|---|
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 |
14 | static char sccsid[] = "@(#)extern.c 5.2 (Berkeley) %G%"; |
15 | #endif /* not lint */ | |
a0de618d KM |
16 | |
17 | # include "robots.h" | |
18 | ||
19 | bool Dead; /* Player is now dead */ | |
20 | bool Full_clear = TRUE; /* Lots of junk for init_field to clear */ | |
21 | bool Jump = FALSE; /* Jump while running, counting, or waiting */ | |
22 | bool Newscore; /* There was a new score added */ | |
23 | #ifdef FANCY | |
24 | bool Pattern_roll = FALSE; /* Auto play for YHBJNLUK pattern */ | |
25 | #endif | |
26 | bool Real_time = FALSE; /* Play in real time? */ | |
27 | bool Running = FALSE; /* Currently in the middle of a run */ | |
28 | #ifdef FANCY | |
29 | bool Stand_still = FALSE; /* Auto play for standing still pattern */ | |
30 | #endif | |
31 | bool Teleport = FALSE; /* Teleport automatically when player must */ | |
32 | bool Waiting; /* Player is waiting for end */ | |
33 | bool Was_bonus = FALSE; /* Was a bonus last level */ | |
34 | ||
35 | char Cnt_move; /* Command which has preceded the count */ | |
36 | char Field[Y_FIELDSIZE][X_FIELDSIZE]; /* the playing field itslef */ | |
37 | char *Next_move; /* Next move to be used in the pattern */ | |
38 | char *Move_list = "YHBJNLUK";/* List of moves in the pattern */ | |
39 | char Run_ch; /* Character for the direction we are running */ | |
40 | ||
41 | int Count = 0; /* Command count */ | |
42 | int Level; /* Current level */ | |
43 | int Num_robots; /* Number of robots left */ | |
44 | int Num_scores; /* Number of scores posted */ | |
45 | int Score; /* Current score */ | |
46 | int Start_level = 1; /* Level on which to start */ | |
47 | int Wait_bonus; /* bonus for waiting */ | |
48 | ||
49 | COORD Max; /* Max area robots take up */ | |
50 | COORD Min; /* Min area robots take up */ | |
51 | COORD My_pos; /* Player's current position */ | |
52 | COORD Robots[MAXROBOTS]; /* Robots' current positions */ | |
53 | ||
54 | jmp_buf End_move; /* Jump to on Real_time */ |