]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - hunt/huntd/extern.c
Remove unnecessary casts, and add necessary ones for printf arguments.
[bsdgames-darwin.git] / hunt / huntd / extern.c
1 /* $NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $ */
2 /*
3 * Hunt
4 * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
5 * San Francisco, California
6 */
7
8 #include <sys/cdefs.h>
9 #ifndef lint
10 __RCSID("$NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $");
11 #endif /* not lint */
12
13 # include "hunt.h"
14
15 # ifdef MONITOR
16 FLAG Am_monitor = FALSE; /* current process is a monitor */
17 # endif
18
19 char Buf[BUFSIZ]; /* general scribbling buffer */
20 char Maze[HEIGHT][WIDTH2]; /* the maze */
21 char Orig_maze[HEIGHT][WIDTH2]; /* the original maze */
22
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"
31 * item */
32
33 BULLET *Bullets = NULL; /* linked list of bullets */
34
35 EXPL *Expl[EXPLEN]; /* explosion lists */
36 EXPL *Last_expl; /* last explosion on Expl[0] */
37
38 PLAYER Player[MAXPL]; /* all the players */
39 PLAYER *End_player = Player; /* last active player slot */
40 # ifdef BOOTS
41 PLAYER Boot[NBOOTS]; /* all the boots */
42 # endif
43 IDENT *Scores; /* score cache */
44 # ifdef MONITOR
45 PLAYER Monitor[MAXMON]; /* all the monitors */
46 PLAYER *End_monitor = Monitor; /* last active monitor slot */
47 # endif
48
49 # ifdef VOLCANO
50 int volcano = 0; /* Explosion size */
51 # endif
52
53 int shot_req[MAXBOMB] = {
54 BULREQ, GRENREQ, SATREQ,
55 BOMB7REQ, BOMB9REQ, BOMB11REQ,
56 BOMB13REQ, BOMB15REQ, BOMB17REQ,
57 BOMB19REQ, BOMB21REQ,
58 };
59 int shot_type[MAXBOMB] = {
60 SHOT, GRENADE, SATCHEL,
61 BOMB, BOMB, BOMB,
62 BOMB, BOMB, BOMB,
63 BOMB, BOMB,
64 };
65
66 int slime_req[MAXSLIME] = {
67 SLIMEREQ, SSLIMEREQ, SLIME2REQ, SLIME3REQ,
68 };