Home | History | Annotate | Line # | Download | only in hack
hack.Decl.c revision 1.5
      1 /*	$NetBSD: hack.Decl.c,v 1.5 2001/03/25 20:43:59 jsm Exp $	*/
      2 
      3 /*
      4  * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
      5  */
      6 
      7 #include <sys/cdefs.h>
      8 #ifndef lint
      9 __RCSID("$NetBSD: hack.Decl.c,v 1.5 2001/03/25 20:43:59 jsm Exp $");
     10 #endif				/* not lint */
     11 
     12 #include	"hack.h"
     13 char            nul[40];	/* contains zeros */
     14 char            plname[PL_NSIZ];/* player name */
     15 char            lock[PL_NSIZ + 4] = "1lock";	/* long enough for login name
     16 						 * .99 */
     17 
     18 boolean         in_mklev, restoring;
     19 
     20 struct rm       levl[COLNO][ROWNO];	/* level map */
     21 #ifndef QUEST
     22 #include "def.mkroom.h"
     23 struct mkroom   rooms[MAXNROFROOMS + 1];
     24 coord           doors[DOORMAX];
     25 #endif	/* QUEST */
     26 struct monst   *fmon = 0;
     27 struct trap    *ftrap = 0;
     28 struct gold    *fgold = 0;
     29 struct obj     *fobj = 0, *fcobj = 0, *invent = 0, *uwep = 0, *uarm = 0, *uarm2 = 0,
     30                *uarmh = 0, *uarms = 0, *uarmg = 0, *uright = 0, *uleft = 0,
     31                *uchain = 0, *uball = 0;
     32 struct flag     flags;
     33 struct you      u;
     34 struct monst    youmonst;	/* dummy; used as return value for boomhit */
     35 
     36 xchar           dlevel = 1;
     37 xchar           xupstair, yupstair, xdnstair, ydnstair;
     38 char           *save_cm = 0;
     39 const char *killer, *nomovemsg;
     40 
     41 long            moves = 1;
     42 long            wailmsg = 0;
     43 
     44 int             multi = 0;
     45 char            genocided[60];
     46 char            fut_geno[60];
     47 
     48 xchar           curx, cury;
     49 xchar           seelx, seehx, seely, seehy;	/* corners of lit room */
     50 
     51 coord           bhitpos;
     52 
     53 const char      quitchars[] = " \r\n\033";
     54