2 SPDX-FileCopyrightText: Eric S. Raymond <esr@thyrsus.com>
3 SPDX-License-Identifier: BSD-2-Clause
11 #define SILENT -1 /* no sound */
13 /* Symbols for cond bits */
14 #define COND_LIT 0 /* Light */
15 #define COND_OILY 1 /* If bit 2 is on: on for oil, off for water */
16 #define COND_FLUID 2 /* Liquid asset, see bit 1 */
17 #define COND_NOARRR 3 /* Pirate doesn't go here unless following */
18 #define COND_NOBACK 4 /* Cannot use "back" to move away */
19 #define COND_ABOVE 5 /* Aboveground, but not in forest */
20 #define COND_DEEP 6 /* Deep - e.g where dwarves are active */
21 #define COND_FOREST 7 /* In the forest */
22 #define COND_FORCED 8 /* Only one way in or out of here */
23 #define COND_ALLDIFFERENT 9 /* Room is in maze all different */
24 #define COND_ALLALIKE 10 /* Room is in maze all alike */
25 /* Bits past 11 indicate areas of interest to "hint" routines */
26 #define COND_HBASE 11 /* Base for location hint bits */
27 #define COND_HCAVE 12 /* Trying to get into cave */
28 #define COND_HBIRD 13 /* Trying to catch bird */
29 #define COND_HSNAKE 14 /* Trying to deal with snake */
30 #define COND_HMAZE 15 /* Lost in maze */
31 #define COND_HDARK 16 /* Pondering dark room */
32 #define COND_HWITT 17 /* At Witt's End */
33 #define COND_HCLIFF 18 /* Cliff with urn */
34 #define COND_HWOODS 19 /* Lost in forest */
35 #define COND_HOGRE 20 /* Trying to deal with ogre */
36 #define COND_HJADE 21 /* Found all treasures except jade */
44 const string_group_t words;
45 const char* inventory;
48 const char** descriptions;
60 descriptions_t description;
67 const char* yes_response;
90 const string_group_t words;
94 const string_group_t words;
99 enum condtype_t {{cond_goto, cond_pct, cond_carry, cond_with, cond_not}};
100 enum desttype_t {{dest_goto, dest_special, dest_speak}};
107 const enum desttype_t desttype;
109 const bool nodwarves;
113 extern const location_t locations[];
114 extern const object_t objects[];
115 extern const char* arbitrary_messages[];
116 extern const class_t classes[];
117 extern const turn_threshold_t turn_thresholds[];
118 extern const obituary_t obituaries[];
119 extern const hint_t hints[];
120 extern long conditions[];
121 extern const motion_t motions[];
122 extern const action_t actions[];
123 extern const travelop_t travel[];
124 extern const long tkey[];
125 extern const char *ignore;
127 #define NLOCATIONS {num_locations}
128 #define NOBJECTS {num_objects}
129 #define NHINTS {num_hints}
130 #define NCLASSES {num_classes}
131 #define NDEATHS {num_deaths}
132 #define NTHRESHOLDS {num_thresholds}
133 #define NMOTIONS {num_motions}
134 #define NACTIONS {num_actions}
135 #define NTRAVEL {num_travel}
136 #define NKEYS {num_keys}
138 #define BIRD_ENDSTATE {bird_endstate}
140 enum arbitrary_messages_refs {{
144 enum locations_refs {{
160 /* State definitions */
164 #endif /* end DUNGEON_H */