]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/def.rm.h
1 /* $NetBSD: def.rm.h,v 1.5 2001/01/16 02:50:28 cgd Exp $ */
4 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
8 /* Level location types */
14 #define POOL 6 /* not yet fully implemented */
15 /* this should in fact be a bit like lit */
22 * Avoid using the level types in inequalities:
23 * these types are subject to change.
24 * Instead, use one of the macros below.
26 #define IS_WALL(typ) ((typ) <= VWALL)
27 #define IS_ROCK(typ) ((typ) < POOL) /* absolutely nonaccessible */
28 #define ACCESSIBLE(typ) ((typ) >= DOOR) /* good position */
29 #define IS_ROOM(typ) ((typ) >= ROOM) /* ROOM or STAIRS */
30 #define ZAP_POS(typ) ((typ) > DOOR)
33 * A few of the associated symbols are not hardwired.
45 * The structure describing a coordinate position.
46 * Before adding fields, remember that this will significantly affect
47 * the size of temporary files and save files.
56 extern struct rm levl
[COLNO
][ROWNO
];
57 #endif /* _DEF_RM_H_ */