Fandom

Wikihack

Source:NetHack 1.3d/decl.c

2,034pages on
this wiki
Add New Page
Talk0

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Below is the full text to decl.c from the source code of NetHack 1.3d. To link to a particular line, write [[NetHack 1.3d/decl.c#line123]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

Screenshots and source code from Hack are used under the CWI license.
1.    /*	SCCS Id: @(#)decl.c	1.3	87/07/14
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3.    /* Decl.c - version 1.0.3 */
4.    
5.    #include	"hack.h"
6.    char nul[40];			/* contains zeros */
7.    char plname[PL_NSIZ];		/* player name */
8.    #ifdef DGK
9.    char hackdir[PATHLEN];		/* where rumors, help, record are */
10.   char levels[PATHLEN];		/* where levels are */
11.   char lock[FILENAME];		/* pathname of level files */
12.   char permbones[PATHLEN];	/* where permanent copy of bones go */
13.   int ramdisk = FALSE;		/* whether to copy bones to levels or not */
14.   struct symbols symbol = {'|', '-', '-', '-', '-', '-', '+', '.', '#'};
15.   int saveprompt = TRUE;
16.   char *alllevels = "levels.*";
17.   char *allbones = "bones.*";
18.   char *configfile = "HACK.CNF";	/* read by read_config_file() */
19.   #else
20.   char lock[PL_NSIZ+4] = "1lock";	/* long enough for login name .99 */
21.   #endif
22.   
23.   boolean in_mklev, restoring;
24.   struct rm levl[COLNO][ROWNO]; /* level map */
25.   
26.   #ifndef QUEST
27.   #include "mkroom.h"
28.   struct mkroom rooms[MAXNROFROOMS+1];
29.   coord doors[DOORMAX];
30.   #endif
31.   struct monst *fmon = 0;
32.   struct trap *ftrap = 0;
33.   struct gold *fgold = 0;
34.   struct obj *fobj = 0, *fcobj = 0, *invent = 0, *uwep = 0, *uarm = 0,
35.   	*uarm2 = 0, *uarmh = 0, *uarms = 0, *uarmg = 0, *uright = 0,
36.   	*uleft = 0, *uchain = 0, *uball = 0;
37.   struct flag flags;
38.   struct you u;
39.   #ifdef SPELLS
40.   struct spell spl_book[MAXSPELL + 1];
41.   #endif
42.   struct rm levl[COLNO][ROWNO];	/* level map */
43.   struct monst youmonst;	/* dummy; used as return value for boomhit */
44.   
45.   xchar dlevel = 1;
46.   xchar xupstair, yupstair, xdnstair, ydnstair;
47.   char *save_cm = 0, *killer, *nomovemsg;
48.   
49.   long moves = 1;
50.   long wailmsg = 0;
51.   int multi = 0;
52.   char	*occtxt;
53.   #ifdef DGKMOD
54.   int	occtime;
55.   #endif
56.   #ifdef REDO
57.   int	in_doagain;
58.   #endif
59.   
60.   char *HI, *HE;		/* set up in termcap.c */
61.   
62.   char genocided[60];
63.   char fut_geno[60];
64.   #ifdef KAA
65.   boolean	stoned;				/* done to monsters hit by 'c' */
66.   boolean	unweapon;
67.   #endif
68.    
69.   xchar curx,cury;
70.   xchar seelx, seehx, seely, seehy;	/* corners of lit room */
71.   
72.   coord bhitpos;
73.   
74.   char quitchars[] = " \r\n\033";

Also on Fandom

Random Wiki