1 /* SCCS Id: @(#)lev.h 3.4 1994/03/18 */
2 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3 /* NetHack may be freely redistributed. See license for details. */
5 /* Common include file for save and restore routines */
10 #define COUNT_SAVE 0x1
11 #define WRITE_SAVE 0x2
14 /* operations of the various saveXXXchn & co. routines */
15 #define perform_bwrite(mode) ((mode) & (COUNT_SAVE|WRITE_SAVE))
16 #define release_data(mode) ((mode) & FREE_SAVE)
18 /* The following are used in mkmaze.c */
20 struct container *next;
32 xchar x, y; /* coordinates of the upper left corner */
33 schar dx, dy; /* the general direction of the bubble's movement */
34 uchar *bm; /* pointer to the bubble bit mask */
35 struct bubble *prev, *next; /* need to traverse the list up and down */
36 struct container *cons;
42 xchar x, y; /* source's position */
43 short range; /* source's current range */
45 short type; /* type of light source */
46 genericptr_t id; /* source's identifier */