1: /*
2: * Hunt
3: * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
4: * San Francisco, California
5: *
6: * Copyright (c) 1985 Regents of the University of California.
7: * All rights reserved. The Berkeley software License Agreement
8: * specifies the terms and conditions for redistribution.
9: */
10:
11: # include "hunt.h"
12:
13: # ifdef MONITOR
14: FLAG Am_monitor = FALSE; /* current process is a monitor */
15: # endif MONITOR
16:
17: char Buf[BUFSIZ]; /* general scribbling buffer */
18: char Maze[HEIGHT][WIDTH2]; /* the maze */
19: char Orig_maze[HEIGHT][WIDTH2]; /* the original maze */
20:
21: long Fds_mask; /* mask for the file descriptors */
22: int Have_inp; /* which file descriptors have input */
23: int Nplayer = 0; /* number of players */
24: int Num_fds; /* number of maximum file descriptor */
25: int Socket; /* main socket */
26: long Sock_mask; /* select mask for main socket */
27: int See_over[NASCII]; /* lookup table for determining whether
28: * character represents "transparent"
29: * item */
30:
31: BULLET *Bullets = NULL; /* linked list of bullets */
32:
33: EXPL *Expl[EXPLEN]; /* explosion lists */
34:
35: PLAYER Player[MAXPL]; /* all the players */
36: PLAYER *End_player = Player; /* last active player slot */
37: IDENT *Scores; /* score cache */
38: # ifdef MONITOR
39: PLAYER Monitor[MAXMON]; /* all the monitors */
40: PLAYER *End_monitor = Monitor; /* last active monitor slot */
41: # endif MONITOR
42:
43: # ifdef VOLCANO
44: int volcano = 0; /* Explosion size */
45: # endif VOLCANO
Defined variables
Buf
defined in line
17; used 9 times
Expl
defined in line
33;
never used
Maze
defined in line
18; used 32 times
- in /usr/src/games/hunt/makemaze.c line
13,
24-25(2),
58,
112-122(5),
144(2)
- in /usr/src/games/hunt/shots.c line
46,
76,
105,
126,
163,
216-221(2),
240,
276-286(3),
293,
325,
353,
418,
439-445(3),
462,
524,
656