NetBSD/games/hack/hack.Decl.c

53 lines
1.5 KiB
C
Raw Normal View History

1997-10-19 20:56:41 +04:00
/* $NetBSD: hack.Decl.c,v 1.4 1997/10/19 16:57:30 christos Exp $ */
1993-08-02 21:16:36 +04:00
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
*/
1997-10-19 20:56:41 +04:00
#include <sys/cdefs.h>
1993-08-02 21:16:36 +04:00
#ifndef lint
1997-10-19 20:56:41 +04:00
__RCSID("$NetBSD: hack.Decl.c,v 1.4 1997/10/19 16:57:30 christos Exp $");
#endif /* not lint */
1993-03-21 12:45:37 +03:00
#include "hack.h"
1997-10-19 20:56:41 +04:00
char nul[40]; /* contains zeros */
char plname[PL_NSIZ];/* player name */
char lock[PL_NSIZ + 4] = "1lock"; /* long enough for login name
* .99 */
1993-03-21 12:45:37 +03:00
1997-10-19 20:56:41 +04:00
boolean in_mklev, restoring;
1993-03-21 12:45:37 +03:00
1997-10-19 20:56:41 +04:00
struct rm levl[COLNO][ROWNO]; /* level map */
1993-03-21 12:45:37 +03:00
#ifndef QUEST
#include "def.mkroom.h"
1997-10-19 20:56:41 +04:00
struct mkroom rooms[MAXNROFROOMS + 1];
coord doors[DOORMAX];
#endif /* QUEST */
struct monst *fmon = 0;
struct trap *ftrap = 0;
struct gold *fgold = 0;
struct obj *fobj = 0, *fcobj = 0, *invent = 0, *uwep = 0, *uarm = 0, *uarm2 = 0,
*uarmh = 0, *uarms = 0, *uarmg = 0, *uright = 0, *uleft = 0,
*uchain = 0, *uball = 0;
struct flag flags;
struct you u;
struct monst youmonst; /* dummy; used as return value for boomhit */
xchar dlevel = 1;
xchar xupstair, yupstair, xdnstair, ydnstair;
char *save_cm = 0, *killer, *nomovemsg;
long moves = 1;
long wailmsg = 0;
int multi = 0;
char genocided[60];
char fut_geno[60];
xchar curx, cury;
xchar seelx, seehx, seely, seehy; /* corners of lit room */
coord bhitpos;
char quitchars[] = " \r\n\033";