Source:NetHack 3.4.3/include/epri.h

From NetHackWiki
Jump to: navigation, search

Below is the full text to include/epri.h from NetHack 3.4.3. To link to a particular line, write [[epri.h#line123]], for example.

  1. /*	SCCS Id: @(#)epri.h	3.4	1997/05/01	*/
  2. /* Copyright (c) Izchak Miller, 1989.				  */
  3. /* NetHack may be freely redistributed.  See license for details. */

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. #ifndef EPRI_H
  2. #define EPRI_H
  3.  
  4. struct epri {
  5. 	aligntyp shralign;	/* alignment of priest's shrine */
  6. 				/* leave as first field to match emin */
  7. 	schar shroom;		/* index in rooms */
  8. 	coord shrpos;		/* position of shrine */
  9. 	d_level shrlevel;	/* level (& dungeon) of shrine */
  10. };
  11.  
  12. #define EPRI(mon)	((struct epri *)&(mon)->mextra[0])
  13.  
  14. /* A priest without ispriest is a roaming priest without a shrine, so
  15. * the fields (except shralign, which becomes only the priest alignment)
  16. * are available for reuse.
  17. */
  18. #define renegade shroom
  19.  
  20. #endif /* EPRI_H */