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