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