1 /* SCCS Id: @(#)dgn_file.h 3.4 1993/01/17 */
2 /* Copyright (c) 1989 by M. Stephenson */
3 /* NetHack may be freely redistributed. See license for details. */
13 * Structures manipulated by the dungeon loader & compiler
28 entry_lev; /* entry level for this dungeon */
35 int chance, rndlevs, chain, flags;
40 char name[24]; /* destination dungeon name */
42 int chain; /* index into tmplevel array (chained branch)*/
43 int type; /* branch type (see below) */
44 int up; /* branch is up or down */
48 * Values for type for tmpbranch structure.
50 #define TBR_STAIR 0 /* connection with both ends having a staircase */
51 #define TBR_NO_UP 1 /* connection with no up staircase */
52 #define TBR_NO_DOWN 2 /* connection with no down staircase */
53 #define TBR_PORTAL 3 /* portal connection */
56 * Flags that map into the dungeon flags bitfields.
58 #define TOWN 1 /* levels only */
63 #define D_ALIGN_NONE 0
64 #define D_ALIGN_CHAOTIC (AM_CHAOTIC << 4)
65 #define D_ALIGN_NEUTRAL (AM_NEUTRAL << 4)
66 #define D_ALIGN_LAWFUL (AM_LAWFUL << 4)
68 #define D_ALIGN_MASK 0x70
71 * Max number of prototype levels and branches.
74 #define BRANCH_LIMIT 32
76 #endif /* DGN_FILE_H */