]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hunt/huntd/extern.c
3 * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
4 * San Francisco, California
10 FLAG Am_monitor
= FALSE
; /* current process is a monitor */
13 char Buf
[BUFSIZ
]; /* general scribbling buffer */
14 char Maze
[HEIGHT
][WIDTH2
]; /* the maze */
15 char Orig_maze
[HEIGHT
][WIDTH2
]; /* the original maze */
17 long Fds_mask
; /* mask for the file descriptors */
18 int Have_inp
; /* which file descriptors have input */
19 int Nplayer
= 0; /* number of players */
20 int Num_fds
; /* number of maximum file descriptor */
21 int Socket
; /* main socket */
22 long Sock_mask
; /* select mask for main socket */
23 int Status
; /* stat socket */
24 long Stat_mask
; /* select mask for stat socket */
25 int See_over
[NASCII
]; /* lookup table for determining whether
26 * character represents "transparent"
29 BULLET
*Bullets
= NULL
; /* linked list of bullets */
31 EXPL
*Expl
[EXPLEN
]; /* explosion lists */
32 EXPL
*Last_expl
; /* last explosion on Expl[0] */
34 PLAYER Player
[MAXPL
]; /* all the players */
35 PLAYER
*End_player
= Player
; /* last active player slot */
37 PLAYER Boot
[NBOOTS
]; /* all the boots */
39 IDENT
*Scores
; /* score cache */
41 PLAYER Monitor
[MAXMON
]; /* all the monitors */
42 PLAYER
*End_monitor
= Monitor
; /* last active monitor slot */
46 int volcano
= 0; /* Explosion size */
49 int shot_req
[MAXBOMB
] = {
50 BULREQ
, GRENREQ
, SATREQ
,
51 BOMB7REQ
, BOMB9REQ
, BOMB11REQ
,
52 BOMB13REQ
, BOMB15REQ
, BOMB17REQ
,
55 int shot_type
[MAXBOMB
] = {
56 SHOT
, GRENADE
, SATCHEL
,
62 int slime_req
[MAXSLIME
] = {
63 SLIMEREQ
, SSLIMEREQ
, SLIME2REQ
, SLIME3REQ
,