Source:NetHack 1.3d/mkroom.h

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

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

1.   /*	SCCS Id: @(#)mkroom.h	1.3	87/07/14 2.   /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3.    /* mkroom.h - version 1.0.3 */ 4.    5.    struct mkroom { 6.   	schar lx,hx,ly,hy;	/* usually xchar, but hx may be -1 */ 7.   	schar rtype,rlit,doorct,fdoor; 8.   };  9.     10.   #define	MAXNROFROOMS	15 11.  extern struct mkroom rooms[MAXNROFROOMS+1]; 12.   13.   #define	DOORMAX	100 14.  extern coord doors[DOORMAX]; 15.   16.   /* various values of rtype */ 17.  /* 0: ordinary room; 8-15: various shops */ 18.  /* Note: some code assumes that >= 8 means shop, so be careful when adding 19.     new roomtypes */ 20.   21.   #define COURT		 2 22.  #define	SWAMP		 3 23.  #define	VAULT		 4 24.  #define	BEEHIVE		 5 25.  #define	MORGUE		 6 26.  #define	ZOO		 7 27.  #define	SHOPBASE	 8 28.  #define	WANDSHOP	 9 29.  #define	GENERAL		15