Fandom

Wikihack

Source:NetHack 1.3d/extern.h

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 extern.h from the source code of NetHack 1.3d. To link to a particular line, write [[NetHack 1.3d/extern.h#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: @(#)extern.h	1.3	87/07/14
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3.    /* extern.h - version 1.0 */
4.    
5.    #include "config.h"
6.    
7.    #ifndef MSDOS
8.    extern char *sprintf();
9.    #endif
10.   
11.   extern long *alloc();
12.   
13.   extern xchar xdnstair, ydnstair, xupstair, yupstair; /* stairs up and down. */
14.   
15.   extern xchar dlevel;
16.   
17.   #ifdef SPELLS
18.   #include "spell.h"
19.   extern	struct spell spl_book[];
20.   #endif
21.   
22.   extern int occtime;
23.   extern char *occtxt;		/* defined when occupation != NULL */
24.   
25.   #ifdef REDO
26.   extern int in_doagain;
27.   #endif
28.   
29.   extern char *HI, *HE;		/* set up in termcap.c */
30.   
31.   #include "obj.h"
32.   extern struct obj *invent, *uwep, *uarm, *uarm2, *uarmh, *uarms, *uarmg, 
33.   	*uleft, *uright, *fcobj;
34.   extern struct obj *uchain;	/* defined iff PUNISHED */
35.   extern struct obj *uball;	/* defined if PUNISHED */
36.   struct obj *o_at(), *getobj(), *sobj_at();
37.   
38.   extern char *traps[];
39.   extern char *monnam(), *Monnam(), *amonnam(), *Amonnam(),
40.   	*doname(), *aobjnam();
41.   extern char readchar();
42.   extern char vowels[];
43.   
44.   #include "you.h"
45.   
46.   extern struct you u;
47.   
48.   extern xchar curx,cury;	/* cursor location on screen */
49.   
50.   extern xchar seehx,seelx,seehy,seely; /* where to see*/
51.   extern char *save_cm,*killer;
52.   
53.   extern xchar dlevel, maxdlevel; /* dungeon level */
54.   
55.   extern long moves;
56.   
57.   extern int multi;
58.   
59.   extern char lock[];

Also on Fandom

Random Wiki