X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=templates%2Fdungeon.h.tpl;h=cf637c8ecd1c9fd74c8ce1e383a640378ef4f081;hb=HEAD;hp=4dde750a319d0be6f755fa3f4ef320e046886994;hpb=319c5830c835b86cdcaa56e2ba9bdb50549e9186;p=open-adventure.git diff --git a/templates/dungeon.h.tpl b/templates/dungeon.h.tpl index 4dde750..cf637c8 100644 --- a/templates/dungeon.h.tpl +++ b/templates/dungeon.h.tpl @@ -1,3 +1,7 @@ +/* +SPDX-FileCopyrightText: Copyright Eric S. Raymond +SPDX-License-Identifier: BSD-2-Clause +*/ #ifndef DUNGEON_H #define DUNGEON_H @@ -12,22 +16,27 @@ #define COND_FLUID 2 /* Liquid asset, see bit 1 */ #define COND_NOARRR 3 /* Pirate doesn't go here unless following */ #define COND_NOBACK 4 /* Cannot use "back" to move away */ -#define COND_ABOVE 5 +#define COND_ABOVE 5 /* Aboveground, but not in forest */ #define COND_DEEP 6 /* Deep - e.g where dwarves are active */ #define COND_FOREST 7 /* In the forest */ #define COND_FORCED 8 /* Only one way in or out of here */ -/* Bits past 10 indicate areas of interest to "hint" routines */ -#define COND_HBASE 10 /* Base for location hint bits */ -#define COND_HCAVE 11 /* Trying to get into cave */ -#define COND_HBIRD 12 /* Trying to catch bird */ -#define COND_HSNAKE 13 /* Trying to deal with snake */ -#define COND_HMAZE 14 /* Lost in maze */ -#define COND_HDARK 15 /* Pondering dark room */ -#define COND_HWITT 16 /* At Witt's End */ -#define COND_HCLIFF 17 /* Cliff with urn */ -#define COND_HWOODS 18 /* Lost in forest */ -#define COND_HOGRE 19 /* Trying to deal with ogre */ -#define COND_HJADE 20 /* Found all treasures except jade */ +#define COND_ALLDIFFERENT 9 /* Room is in maze all different */ +#define COND_ALLALIKE 10 /* Room is in maze all alike */ +/* Bits past 11 indicate areas of interest to "hint" routines */ +#define COND_HBASE 11 /* Base for location hint bits */ +#define COND_HCAVE 12 /* Trying to get into cave */ +#define COND_HBIRD 13 /* Trying to catch bird */ +#define COND_HSNAKE 14 /* Trying to deal with snake */ +#define COND_HMAZE 15 /* Lost in maze */ +#define COND_HDARK 16 /* Pondering dark room */ +#define COND_HWITT 17 /* At Witt's End */ +#define COND_HCLIFF 18 /* Cliff with urn */ +#define COND_HWOODS 19 /* Lost in forest */ +#define COND_HOGRE 20 /* Trying to deal with ogre */ +#define COND_HJADE 21 /* Found all treasures except jade */ + +#define NDWARVES {ndwarflocs} // number of dwarves +extern const int dwarflocs[NDWARVES]; typedef struct {{ const char** strs; @@ -104,13 +113,6 @@ typedef struct {{ const bool stop; }} travelop_t; -/* Abstract out the encoding of words in the travel array. Gives us - * some hope of getting to a less cryptic representation than we - * inherited from FORTRAN, someday. To understand these, read the - * encoding description for travel. - */ -#define T_TERMINATE(entry) ((entry).motion == 1) - extern const location_t locations[]; extern const object_t objects[]; extern const char* arbitrary_messages[]; @@ -162,4 +164,4 @@ enum action_refs {{ {state_definitions} -#endif /* end DUNGEON_H */ \ No newline at end of file +#endif /* end DUNGEON_H */