00001 /* SCCS Id: @(#)epri.h 3.4 1997/05/01 */ 00002 /* Copyright (c) Izchak Miller, 1989. */ 00003 /* NetHack may be freely redistributed. See license for details. */ 00004 00005 #ifndef EPRI_H 00006 #define EPRI_H 00007 00008 struct epri { 00009 aligntyp shralign; /* alignment of priest's shrine */ 00010 /* leave as first field to match emin */ 00011 schar shroom; /* index in rooms */ 00012 coord shrpos; /* position of shrine */ 00013 d_level shrlevel; /* level (& dungeon) of shrine */ 00014 }; 00015 00016 #define EPRI(mon) ((struct epri *)&(mon)->mextra[0]) 00017 00018 /* A priest without ispriest is a roaming priest without a shrine, so 00019 * the fields (except shralign, which becomes only the priest alignment) 00020 * are available for reuse. 00021 */ 00022 #define renegade shroom 00023 00024 #endif /* EPRI_H */