1 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
2 /* def.rm.h - version 1.0.2 */
4 /* Level location types */
10 #define POOL 6 /* not yet fully implemented */
11 /* this should in fact be a bit like lit */
18 * Avoid using the level types in inequalities:
19 * these types are subject to change.
20 * Instead, use one of the macros below.
22 #define IS_WALL(typ) ((typ) <= VWALL)
23 #define IS_ROCK(typ) ((typ) < POOL) /* absolutely nonaccessible */
24 #define ACCESSIBLE(typ) ((typ) >= DOOR) /* good position */
25 #define IS_ROOM(typ) ((typ) >= ROOM) /* ROOM or STAIRS */
26 #define ZAP_POS(typ) ((typ) > DOOR)
29 * A few of the associated symbols are not hardwired.
41 * The structure describing a coordinate position.
42 * Before adding fields, remember that this will significantly affect
43 * the size of temporary files and save files.
52 extern struct rm levl[COLNO][ROWNO];