Source:Hack 1.0/def.wseg.h

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to def.wseg.h from the source code of Hack 1.0. To link to a particular line, write [[Hack 1.0/def.wseg.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.    #ifndef NOWORM
4.    /* worm structure */
5.    struct wseg {
6.    	struct wseg *nseg;
7.    	xchar wx,wy;
8.    	unsigned wdispl:1;
9.    };
10.   
11.   #define newseg()	(struct wseg *) alloc(sizeof(struct wseg))
12.   #endif NOWORM