Source:Hack 1.0/def.gen.h

From NetHackWiki
Revision as of 22:07, 3 March 2008 by Kernigh bot (talk | contribs) (Hack 1.0/def.gen.h moved to Source:Hack 1.0/def.gen.h: Robot: moved page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Below is the full text to def.gen.h from the source code of Hack 1.0. To link to a particular line, write [[Hack 1.0/def.gen.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.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */
2.    
3.    struct gen {
4.    	struct gen *ngen;
5.    	xchar gx,gy;
6.    	unsigned gflag;		/* 037: trap type; 040: SEEN flag */
7.    #define	SEEN	040
8.    };
9.    extern struct gen *fgold, *ftrap;
10.   struct gen *g_at();
11.   #define newgen()	(struct gen *) alloc(sizeof(struct gen))