]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hunt/huntd/extern.c
1 /* $NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $ */
4 * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
5 * San Francisco, California
10 __RCSID("$NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $");
16 FLAG Am_monitor
= FALSE
; /* current process is a monitor */
19 char Buf
[BUFSIZ
]; /* general scribbling buffer */
20 char Maze
[HEIGHT
][WIDTH2
]; /* the maze */
21 char Orig_maze
[HEIGHT
][WIDTH2
]; /* the original maze */
23 fd_set Fds_mask
; /* mask for the file descriptors */
24 fd_set Have_inp
; /* which file descriptors have input */
25 int Nplayer
= 0; /* number of players */
26 int Num_fds
; /* number of maximum file descriptor */
27 int Socket
; /* main socket */
28 int Status
; /* stat socket */
29 int See_over
[NASCII
]; /* lookup table for determining whether
30 * character represents "transparent"
33 BULLET
*Bullets
= NULL
; /* linked list of bullets */
35 EXPL
*Expl
[EXPLEN
]; /* explosion lists */
36 EXPL
*Last_expl
; /* last explosion on Expl[0] */
38 PLAYER Player
[MAXPL
]; /* all the players */
39 PLAYER
*End_player
= Player
; /* last active player slot */
41 PLAYER Boot
[NBOOTS
]; /* all the boots */
43 IDENT
*Scores
; /* score cache */
45 PLAYER Monitor
[MAXMON
]; /* all the monitors */
46 PLAYER
*End_monitor
= Monitor
; /* last active monitor slot */
50 int volcano
= 0; /* Explosion size */
53 int shot_req
[MAXBOMB
] = {
54 BULREQ
, GRENREQ
, SATREQ
,
55 BOMB7REQ
, BOMB9REQ
, BOMB11REQ
,
56 BOMB13REQ
, BOMB15REQ
, BOMB17REQ
,
59 int shot_type
[MAXBOMB
] = {
60 SHOT
, GRENADE
, SATCHEL
,
66 int slime_req
[MAXSLIME
] = {
67 SLIMEREQ
, SSLIMEREQ
, SLIME2REQ
, SLIME3REQ
,