]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/hack.Decl.c
merge with Lite, new RCS id conventions, etc.
[bsdgames-darwin.git] / hack / hack.Decl.c
1 /*
2 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
3 */
4
5 #ifndef lint
6 static char rcsid[] = "$NetBSD: hack.Decl.c,v 1.3 1995/03/23 08:29:45 cgd Exp $";
7 #endif /* not lint */
8
9 #include "hack.h"
10 char nul[40]; /* contains zeros */
11 char plname[PL_NSIZ]; /* player name */
12 char lock[PL_NSIZ+4] = "1lock"; /* long enough for login name .99 */
13
14 boolean in_mklev, restoring;
15
16 struct rm levl[COLNO][ROWNO]; /* level map */
17 #ifndef QUEST
18 #include "def.mkroom.h"
19 struct mkroom rooms[MAXNROFROOMS+1];
20 coord doors[DOORMAX];
21 #endif QUEST
22 struct monst *fmon = 0;
23 struct trap *ftrap = 0;
24 struct gold *fgold = 0;
25 struct obj *fobj = 0, *fcobj = 0, *invent = 0, *uwep = 0, *uarm = 0,
26 *uarm2 = 0, *uarmh = 0, *uarms = 0, *uarmg = 0, *uright = 0,
27 *uleft = 0, *uchain = 0, *uball = 0;
28 struct flag flags;
29 struct you u;
30 struct monst youmonst; /* dummy; used as return value for boomhit */
31
32 xchar dlevel = 1;
33 xchar xupstair, yupstair, xdnstair, ydnstair;
34 char *save_cm = 0, *killer, *nomovemsg;
35
36 long moves = 1;
37 long wailmsg = 0;
38
39 int multi = 0;
40 char genocided[60];
41 char fut_geno[60];
42
43 xchar curx,cury;
44 xchar seelx, seehx, seely, seehy; /* corners of lit room */
45
46 coord bhitpos;
47
48 char quitchars[] = " \r\n\033";