Source:NetHack 3.1.0/engrave.h

From NetHackWiki
Revision as of 06:25, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 3.1.0/engrave.h moved to Source:NetHack 3.1.0/engrave.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 engrave.h from the source code of NetHack 3.1.0. To link to a particular line, write [[NetHack 3.1.0/engrave.h#line123]], for example.

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

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1.    /*	SCCS Id: @(#)engrave.h	3.1	91/07/31	*/
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #ifndef ENGRAVE_H
6.    #define ENGRAVE_H
7.    
8.    struct engr {
9.    	struct engr *nxt_engr;
10.   	char *engr_txt;
11.   	xchar engr_x, engr_y;
12.   	unsigned engr_lth;	/* for save & restore; not length of text */
13.   	long engr_time;		/* moment engraving was (will be) finished */
14.   	xchar engr_type;
15.   #define DUST	  1
16.   #define ENGRAVE	  2
17.   #define BURN	  3
18.   #define MARK	  4
19.   #define BLOOD	  5
20.   #define N_ENGRAVE 5
21.   };
22.   
23.   #define newengr(lth) (struct engr *)alloc((unsigned)(lth) + sizeof(struct engr))
24.   #define dealloc_engr(engr) free((genericptr_t) (engr))
25.   
26.   #endif /* ENGRAVE_H */