Home | History | Annotate | Line # | Download | only in huntd
extern.c revision 1.3
      1  1.3  mycroft /*	$NetBSD: extern.c,v 1.3 2002/09/20 20:54:16 mycroft Exp $	*/
      2  1.1      mrg /*
      3  1.1      mrg  *  Hunt
      4  1.1      mrg  *  Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
      5  1.1      mrg  *  San Francisco, California
      6  1.1      mrg  */
      7  1.1      mrg 
      8  1.2    lukem #include <sys/cdefs.h>
      9  1.2    lukem #ifndef lint
     10  1.3  mycroft __RCSID("$NetBSD: extern.c,v 1.3 2002/09/20 20:54:16 mycroft Exp $");
     11  1.2    lukem #endif /* not lint */
     12  1.2    lukem 
     13  1.1      mrg # include	"hunt.h"
     14  1.1      mrg 
     15  1.1      mrg # ifdef MONITOR
     16  1.1      mrg FLAG	Am_monitor = FALSE;		/* current process is a monitor */
     17  1.1      mrg # endif
     18  1.1      mrg 
     19  1.1      mrg char	Buf[BUFSIZ];			/* general scribbling buffer */
     20  1.1      mrg char	Maze[HEIGHT][WIDTH2];		/* the maze */
     21  1.1      mrg char	Orig_maze[HEIGHT][WIDTH2];	/* the original maze */
     22  1.1      mrg 
     23  1.3  mycroft struct	pollfd fdset[3+MAXPL+MAXMON];
     24  1.1      mrg int	Nplayer = 0;			/* number of players */
     25  1.1      mrg int	Socket;				/* main socket */
     26  1.1      mrg int	Status;				/* stat socket */
     27  1.1      mrg int	See_over[NASCII];		/* lookup table for determining whether
     28  1.1      mrg 					 * character represents "transparent"
     29  1.1      mrg 					 * item */
     30  1.1      mrg 
     31  1.1      mrg BULLET	*Bullets = NULL;		/* linked list of bullets */
     32  1.1      mrg 
     33  1.1      mrg EXPL	*Expl[EXPLEN];			/* explosion lists */
     34  1.1      mrg EXPL	*Last_expl;			/* last explosion on Expl[0] */
     35  1.1      mrg 
     36  1.1      mrg PLAYER	Player[MAXPL];			/* all the players */
     37  1.1      mrg PLAYER	*End_player = Player;		/* last active player slot */
     38  1.1      mrg # ifdef BOOTS
     39  1.1      mrg PLAYER	Boot[NBOOTS];			/* all the boots */
     40  1.1      mrg # endif
     41  1.1      mrg IDENT	*Scores;			/* score cache */
     42  1.1      mrg # ifdef MONITOR
     43  1.1      mrg PLAYER	Monitor[MAXMON];		/* all the monitors */
     44  1.1      mrg PLAYER	*End_monitor = Monitor;		/* last active monitor slot */
     45  1.1      mrg # endif
     46  1.1      mrg 
     47  1.1      mrg # ifdef VOLCANO
     48  1.1      mrg int	volcano = 0;			/* Explosion size */
     49  1.1      mrg # endif
     50  1.1      mrg 
     51  1.1      mrg int	shot_req[MAXBOMB]	= {
     52  1.1      mrg 				BULREQ, GRENREQ, SATREQ,
     53  1.1      mrg 				BOMB7REQ, BOMB9REQ, BOMB11REQ,
     54  1.1      mrg 				BOMB13REQ, BOMB15REQ, BOMB17REQ,
     55  1.1      mrg 				BOMB19REQ, BOMB21REQ,
     56  1.1      mrg 			};
     57  1.1      mrg int	shot_type[MAXBOMB]	= {
     58  1.1      mrg 				SHOT, GRENADE, SATCHEL,
     59  1.1      mrg 				BOMB, BOMB, BOMB,
     60  1.1      mrg 				BOMB, BOMB, BOMB,
     61  1.1      mrg 				BOMB, BOMB,
     62  1.1      mrg 			};
     63  1.1      mrg 
     64  1.1      mrg int	slime_req[MAXSLIME]	= {
     65  1.1      mrg 				SLIMEREQ, SSLIMEREQ, SLIME2REQ, SLIME3REQ,
     66  1.1      mrg 			};
     67