decl.c (1737B)
1 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 2 /* decl.c - version 1.0.3 */ 3 4 #include "hack.h" 5 char nul[40]; /* contains zeros */ 6 char plname[PL_NSIZ]; /* player name */ 7 #ifdef DGK 8 char hackdir[PATHLEN]; /* where rumors, help, record are */ 9 char levels[PATHLEN]; /* where levels are */ 10 char lock[FILENAME]; /* pathname of level files */ 11 char permbones[PATHLEN]; /* where permanent copy of bones go */ 12 int ramdisk = FALSE; /* whether to copy bones to levels or not */ 13 struct symbols symbol = {'|', '-', '-', '-', '-', '-', '+', '.', '#'}; 14 int saveprompt = TRUE; 15 char *alllevels = "levels.*"; 16 char *allbones = "bones.*"; 17 char *configfile = "HACK.CNF"; /* read by read_config_file() */ 18 int vmajor = VER / 100; /* Major and minor version numbers */ 19 int vminor = VER % 100; 20 #else 21 char lock[PL_NSIZ+4] = "1lock"; /* long enough for login name .99 */ 22 #endif 23 24 boolean in_mklev, restoring; 25 26 struct rm levl[COLNO][ROWNO]; /* level map */ 27 #ifndef QUEST 28 #include "mkroom.h" 29 struct mkroom rooms[MAXNROFROOMS+1]; 30 coord doors[DOORMAX]; 31 #endif /* QUEST /**/ 32 struct monst *fmon = 0; 33 struct trap *ftrap = 0; 34 struct gold *fgold = 0; 35 struct obj *fobj = 0, *fcobj = 0, *invent = 0, *uwep = 0, *uarm = 0, 36 *uarm2 = 0, *uarmh = 0, *uarms = 0, *uarmg = 0, *uright = 0, 37 *uleft = 0, *uchain = 0, *uball = 0; 38 struct flag flags; 39 struct you u; 40 struct monst youmonst; /* dummy; used as return value for boomhit */ 41 42 xchar dlevel = 1; 43 xchar xupstair, yupstair, xdnstair, ydnstair; 44 char *save_cm = 0, *killer, *nomovemsg; 45 46 long moves = 1; 47 long wailmsg = 0; 48 49 int multi = 0; 50 char genocided[60]; 51 char fut_geno[60]; 52 53 xchar curx,cury; 54 xchar seelx, seehx, seely, seehy; /* corners of lit room */ 55 56 coord bhitpos; 57 58 char quitchars[] = " \r\n\033";