1 | /* |
1 | /* |
2 | * static char *rcsid_define_h = |
2 | * static char *rcsid_define_h = |
3 | * "$Id: map.h,v 1.1 2006/02/03 07:12:49 root Exp $"; |
3 | * "$Id: map.h,v 1.2 2006/02/21 11:00:07 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
270 | * (or even through the macros), but doing so will completely |
270 | * (or even through the macros), but doing so will completely |
271 | * break map tiling. |
271 | * break map tiling. |
272 | */ |
272 | */ |
273 | typedef struct mapdef { |
273 | typedef struct mapdef { |
274 | struct mapdef *next; /* Next map, linked list */ |
274 | struct mapdef *next; /* Next map, linked list */ |
275 | char path[HUGE_BUF]; /* Filename of the map */ |
|
|
276 | char *tmpname; /* Name of temporary file */ |
275 | char *tmpname; /* Name of temporary file */ |
277 | char *name; /* Name of map as given by its creator */ |
276 | char *name; /* Name of map as given by its creator */ |
278 | region *region; /* What jurisdiction in the game world this map is ruled by |
277 | region *region; /* What jurisdiction in the game world this map is ruled by |
279 | * points to the struct containing all the properties of |
278 | * points to the struct containing all the properties of |
280 | * the region */ |
279 | * the region */ |
… | |
… | |
317 | uint64 shopmin; /* minimum price a shop will trade for */ |
316 | uint64 shopmin; /* minimum price a shop will trade for */ |
318 | uint64 shopmax; /* maximum price a shop will offer */ |
317 | uint64 shopmax; /* maximum price a shop will offer */ |
319 | char *msg; /* Message map creator may have left */ |
318 | char *msg; /* Message map creator may have left */ |
320 | char *tile_path[4]; /* path to adjoining maps */ |
319 | char *tile_path[4]; /* path to adjoining maps */ |
321 | struct mapdef *tile_map[4]; /* Next map, linked list */ |
320 | struct mapdef *tile_map[4]; /* Next map, linked list */ |
|
|
321 | char path[HUGE_BUF]; /* Filename of the map */ |
322 | } mapstruct; |
322 | } mapstruct; |
323 | |
323 | |
324 | /* This is used by get_rangevector to determine where the other |
324 | /* This is used by get_rangevector to determine where the other |
325 | * creature is. get_rangevector takes into account map tiling, |
325 | * creature is. get_rangevector takes into account map tiling, |
326 | * so you just can not look the the map coordinates and get the |
326 | * so you just can not look the the map coordinates and get the |