version 1.29 | | version 1.30 |
---|
| | |
/* | | /* |
* static char *rcsid_define_h = | | * static char *rcsid_define_h = |
* "$Id: map.h,v 1.29 2005/08/12 13:46:34 ryo_saeba Exp $"; | | * "$Id: map.h,v 1.30 2005/08/31 20:07:22 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#define SET_MAP_LIGHT(M,X,Y,L) ( (M)->spaces[(X) + (M)->width * (Y)].light = L ) | | #define SET_MAP_LIGHT(M,X,Y,L) ( (M)->spaces[(X) + (M)->width * (Y)].light = L ) |
| | |
#define GET_MAP_OB(M,X,Y) ( (M)->spaces[(X) + (M)->width * (Y)].bottom ) | | #define GET_MAP_OB(M,X,Y) ( (M)->spaces[(X) + (M)->width * (Y)].bottom ) |
| | #define GET_MAP_TOP(M,X,Y) ( (M)->spaces[(X) + (M)->width * (Y)].top ) |
/* legacy */ | | /* legacy */ |
#define get_map_ob GET_MAP_OB | | #define get_map_ob GET_MAP_OB |
| | |
#define SET_MAP_OB(M,X,Y,tmp) ( (M)->spaces[(X) + (M)->width * (Y)].bottom = (tmp) ) | | #define SET_MAP_OB(M,X,Y,tmp) ( (M)->spaces[(X) + (M)->width * (Y)].bottom = (tmp) ) |
| | #define SET_MAP_TOP(M,X,Y,tmp) ( (M)->spaces[(X) + (M)->width * (Y)].top = (tmp) ) |
#define set_map_ob SET_MAP_OB | | #define set_map_ob SET_MAP_OB |
| | |
#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 ) |
| | |
| | |
typedef struct MapSpace { | | typedef struct MapSpace { |
object *bottom; /* lowest object on this space */ | | object *bottom; /* lowest object on this space */ |
| | object *top; /* Highest object on this space */ |
New_Face *faces[MAP_LAYERS]; /* faces for the 3 layers */ | | New_Face *faces[MAP_LAYERS]; /* faces for the 3 layers */ |
object *faces_obj[MAP_LAYERS]; /* face objects for the 3 layers */ | | object *faces_obj[MAP_LAYERS]; /* 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) */ |