version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_define_h = | | * static char *rcsid_define_h = |
* "$Id: map.h,v 1.10 2001/10/30 02:30:19 michtoen Exp $"; | | * "$Id: map.h,v 1.11 2001/11/04 20:22:55 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#define SET_MAP_FACE(M,X,Y,C,L) ( (M)->spaces[(X) + (M)->width * (Y)].faces[L] = C ) | | #define SET_MAP_FACE(M,X,Y,C,L) ( (M)->spaces[(X) + (M)->width * (Y)].faces[L] = C ) |
#define GET_MAP_FACE(M,X,Y,L) ( (M)->spaces[(X) + (M)->width * (Y)].faces[L] ) | | #define GET_MAP_FACE(M,X,Y,L) ( (M)->spaces[(X) + (M)->width * (Y)].faces[L] ) |
| | |
| | #define SET_MAP_FACE_OBJ(M,X,Y,C,L) ( (M)->spaces[(X) + (M)->width * (Y)].faces_obj[L] = C ) |
| | #define GET_MAP_FACE_OBJ(M,X,Y,L) ( (M)->spaces[(X) + (M)->width * (Y)].faces_obj[L] ) |
| | |
/* You should really know what you are doing before using this - you | | /* You should really know what you are doing before using this - you |
* should almost always be using out_of_map instead, which takes into account | | * should almost always be using out_of_map instead, which takes into account |
* map tiling. | | * map tiling. |
| | |
typedef struct MapSpace { | | typedef struct MapSpace { |
object *bottom; /* lowest object on this space */ | | object *bottom; /* lowest object on this space */ |
New_Face *faces[3]; /* faces for the 3 layers */ | | New_Face *faces[3]; /* faces for the 3 layers */ |
| | object * faces_obj[3]; /* face objects for the 3 layers */ |
uint8 flags; /* flags about this space (see the P_ values above) */ | | uint8 flags; /* flags about this space (see the P_ values above) */ |
sint8 light; /* How much light this space provides */ | | sint8 light; /* How much light this space provides */ |
} MapSpace; | | } MapSpace; |