1 /* NetHack 3.6 dgn_file.h $ANH-Date: 1432512780 2015/05/25 00:13:00 $ $ANH-Branch: master $:$ANH-Revision: 1.8 $ */
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
21 char name
[24], protoname
[24];
23 int flags
, chance
, levels
, branches
,
24 entry_lev
; /* entry level for this dungeon */
31 int chance
, rndlevs
, chain
, flags
;
36 char name
[24]; /* destination dungeon name */
38 int chain
; /* index into tmplevel array (chained branch)*/
39 int type
; /* branch type (see below) */
40 int up
; /* branch is up or down */
44 * Values for type for tmpbranch structure.
46 #define TBR_STAIR 0 /* connection with both ends having a staircase */
47 #define TBR_NO_UP 1 /* connection with no up staircase */
48 #define TBR_NO_DOWN 2 /* connection with no down staircase */
49 #define TBR_PORTAL 3 /* portal connection */
52 * Flags that map into the dungeon flags bitfields.
54 #define TOWN 1 /* levels only */
59 #define D_ALIGN_NONE 0
60 #define D_ALIGN_CHAOTIC (AM_CHAOTIC << 4)
61 #define D_ALIGN_NEUTRAL (AM_NEUTRAL << 4)
62 #define D_ALIGN_LAWFUL (AM_LAWFUL << 4)
64 #define D_ALIGN_MASK 0x70
67 * Max number of prototype levels and branches.
70 #define BRANCH_LIMIT 32
72 #endif /* DGN_FILE_H */