|
|
1.1 root 1: /*
2: * Copyright (c) 1980 Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution and use in source and binary forms are permitted
6: * provided that: (1) source distributions retain this entire copyright
7: * notice and comment, and (2) distributions including binaries display
8: * the following acknowledgement: ``This product includes software
9: * developed by the University of California, Berkeley and its contributors''
10: * in the documentation or other materials provided with the distribution
11: * and in all advertising materials mentioning features or use of this
12: * software. Neither the name of the University nor the names of its
13: * contributors may be used to endorse or promote products derived
14: * from this software without specific prior written permission.
15: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18: */
19:
20: #ifndef lint
21: static char sccsid[] = "@(#)extern.c 5.4 (Berkeley) 6/1/90";
22: #endif /* not lint */
23:
24: # include "robots.h"
25:
26: bool Dead; /* Player is now dead */
27: bool Full_clear = TRUE; /* Lots of junk for init_field to clear */
28: bool Jump = FALSE; /* Jump while running, counting, or waiting */
29: bool Newscore; /* There was a new score added */
30: #ifdef FANCY
31: bool Pattern_roll = FALSE; /* Auto play for YHBJNLUK pattern */
32: #endif
33: bool Real_time = FALSE; /* Play in real time? */
34: bool Running = FALSE; /* Currently in the middle of a run */
35: #ifdef FANCY
36: bool Stand_still = FALSE; /* Auto play for standing still pattern */
37: #endif
38: bool Teleport = FALSE; /* Teleport automatically when player must */
39: bool Waiting; /* Player is waiting for end */
40: bool Was_bonus = FALSE; /* Was a bonus last level */
41:
42: char Cnt_move; /* Command which has preceded the count */
43: char Field[Y_FIELDSIZE][X_FIELDSIZE]; /* the playing field itslef */
44: char *Next_move; /* Next move to be used in the pattern */
45: char *Move_list = "YHBJNLUK";/* List of moves in the pattern */
46: char Run_ch; /* Character for the direction we are running */
47:
48: int Count = 0; /* Command count */
49: int Level; /* Current level */
50: int Num_robots; /* Number of robots left */
51: int Num_scores; /* Number of scores posted */
52: int Score; /* Current score */
53: int Start_level = 1; /* Level on which to start */
54: int Wait_bonus; /* bonus for waiting */
55:
56: COORD Max; /* Max area robots take up */
57: COORD Min; /* Min area robots take up */
58: COORD My_pos; /* Player's current position */
59: COORD Robots[MAXROBOTS]; /* Robots' current positions */
60:
61: jmp_buf End_move; /* Jump to on Real_time */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.