version 1.8 | | version 1.9 |
---|
| | |
/* | | /* |
* static char *rcsid_define_h = | | * static char *rcsid_define_h = |
* "$Id: map.h,v 1.8 2001/07/14 04:06:50 mwedel Exp $"; | | * "$Id: map.h,v 1.9 2001/08/21 05:39:30 mwedel 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] ) |
| | |
| | /* 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 |
| | * map tiling. |
| | */ |
| | #define OUT_OF_REAL_MAP(M,X,Y) ((X)<0 || (Y)<0 || (X)>=(M)->width || (Y)>=(M)->height) |
| | |
/* These are used in the MapLook flags element. They are not used in | | /* These are used in the MapLook flags element. They are not used in |
* in the object flags structure. | | * in the object flags structure. |
*/ | | */ |
| | |
struct mapdef *tile_map[4]; /* Next map, linked list */ | | struct mapdef *tile_map[4]; /* Next map, linked list */ |
} mapstruct; | | } mapstruct; |
| | |
| | /* This is used by get_rangevector to determine where the other |
| | * creature is. get_rangevector takes into account map tiling, |
| | * so you just can not look the the map coordinates and get the |
| | * righte value. distance_x/y are distance away, which |
| | * can be negativbe. direction is the crossfire direction scheme |
| | * that the creature should head. part is the part of the |
| | * monster that is closest. |
| | */ |
| | typedef struct rv_vector { |
| | int distance; |
| | int distance_x; |
| | int distance_y; |
| | int direction; |
| | object *part; |
| | } rv_vector; |
| | |
#endif | | #endif |