/* SCCS Id: @(#)mkroom.h 3.0 89/01/07 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ #ifndef MKROOM_H #define MKROOM_H /* mkroom.h - types and structures for room and shop initialization */ struct mkroom { schar lx,hx,ly,hy; /* usually xchar, but hx may be -1 */ schar rtype,rlit,doorct,fdoor; }; struct shclass { const char *name; /* name of the shop type */ char symb; /* this identifies the shop type */ int prob; /* the shop type probability in % */ schar dist; /* artifact placement type */ #define D_SCATTER 0 /* normal placement */ #define D_SHOP 1 /* shop-like placement */ #define D_TEMPLE 2 /* temple-like placement */ struct itp { int iprob; /* probability of an item type */ int itype; /* item type: if >=0 a class, if < 0 a specific item */ } iprobs[5]; char **shknms; /* string list of shopkeeper names for this type */ }; extern const struct shclass shtypes[]; /* defined in shknam.c */ extern struct mkroom rooms[MAXNROFROOMS+1]; /* the normal rooms on the current level are described in rooms[0..n] for * some n= SHOPBASE) #endif /* MKROOM_H /**/