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