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