3 /* maximum size limits shared by dungeon compiler and runtime */
5 extern const char advent_to_ascii[128];
6 extern const char ascii_to_advent[128];
8 /* Symbols for cond bits - used by advent.h */
9 #define COND_LIT 0 /* Light */
10 #define COND_OILY 1 /* If bit 2 is on: on for oil, off for water */
11 #define COND_FLUID 2 /* Liquid asset, see bit 1 */
12 #define COND_NOARRR 3 /* Pirate doesn't go here unless following */
13 #define COND_NOBACK 4 /* Cannot use "back" to move away */
15 #define COND_DEEP 6 /* Deep - e.g where dwarves are active */
16 #define COND_FOREST 7 /* In the forest */
17 #define COND_FORCED 8 /* Only one way in or out of here */
18 /* Bits past 10 indicate areas of interest to "hint" routines */
19 #define COND_HBASE 10 /* Base for location hint bits */
20 #define COND_HCAVE 11 /* Trying to get into cave */
21 #define COND_HBIRD 12 /* Trying to catch bird */
22 #define COND_HSNAKE 13 /* Trying to deal with snake */
23 #define COND_HMAZE 14 /* Lost in maze */
24 #define COND_HDARK 15 /* Pondering dark room */
25 #define COND_HWITT 16 /* At Witt's End */
26 #define COND_HCLIFF 17 /* Cliff with urn */
27 #define COND_HWOODS 18 /* Lost in forest */
28 #define COND_HOGRE 19 /* Trying to deal with ogre */
29 #define COND_HJADE 20 /* Found all treasures except jade */
32 MESSAGE_LINE_GT_70_CHARACTERS, // 0
33 NULL_LINE_IN_MESSAGE, // 1
34 TOO_MANY_WORDS_OF_MESSAGES, // 2
35 TOO_MANY_TRAVEL_OPTIONS, // 3
36 TOO_MANY_VOCABULARY_WORDS, // 4
37 REQUIRED_VOCABULARY_WORD_NOT_FOUND, // 5
38 INVALID_SECTION_NUMBER_IN_DATABASE, // 9
39 SPECIAL_TRAVEL_500_GT_L_GT_300_EXCEEDS_GOTO_LIST = 20, // 20
40 RAN_OFF_END_OF_VOCABULARY_TABLE, // 21
41 VOCABULARY_TYPE_N_OVER_1000_NOT_BETWEEN_0_AND_3, // 22
42 INTRANSITIVE_ACTION_VERB_EXCEEDS_GOTO_LIST, // 23
43 TRANSITIVE_ACTION_VERB_EXCEEDS_GOTO_LIST, // 24
44 CONDITIONAL_TRAVEL_ENTRY_WITH_NO_ALTERATION, // 25
45 LOCATION_HAS_NO_TRAVEL_ENTRIES, // 26
46 HINT_NUMBER_EXCEEDS_GOTO_LIST, // 27
47 TOO_MANY_PARAMETERS_GIVEN_TO_SETPRM, // 28
48 SPEECHPART_NOT_TRANSITIVE_OR_INTRANSITIVE_OR_UNKNOWN=99, // 99
49 ACTION_RETURNED_PHASE_CODE_BEYOND_END_OF_SWITCH, // 100
52 /* Alas, declaring this static confuses the coverage analyzer */
53 void bug(enum bugtype, const char *) __attribute__((__noreturn__));
55 #define BUG(x) bug(x, #x)