1 | /* |
1 | /* |
2 | * static char *rcsid_define_h = |
2 | * static char *rcsid_define_h = |
3 | * "$Id: map.h,v 1.1.1.2 2006/02/22 18:01:58 elmex Exp $"; |
3 | * "$Id: map.h,v 1.1.1.3 2006/03/15 14:04:54 elmex 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 | |
… | |
… | |
272 | * (or even through the macros), but doing so will completely |
272 | * (or even through the macros), but doing so will completely |
273 | * break map tiling. |
273 | * break map tiling. |
274 | */ |
274 | */ |
275 | typedef struct mapdef { |
275 | typedef struct mapdef { |
276 | struct mapdef *next; /* Next map, linked list */ |
276 | struct mapdef *next; /* Next map, linked list */ |
277 | char path[HUGE_BUF]; /* Filename of the map */ |
|
|
278 | char *tmpname; /* Name of temporary file */ |
277 | char *tmpname; /* Name of temporary file */ |
279 | char *name; /* Name of map as given by its creator */ |
278 | char *name; /* Name of map as given by its creator */ |
280 | region *region; /* What jurisdiction in the game world this map is ruled by |
279 | region *region; /* What jurisdiction in the game world this map is ruled by |
281 | * points to the struct containing all the properties of |
280 | * points to the struct containing all the properties of |
282 | * the region */ |
281 | * the region */ |
… | |
… | |
320 | uint64 shopmax; /* maximum price a shop will offer */ |
319 | uint64 shopmax; /* maximum price a shop will offer */ |
321 | char *msg; /* Message map creator may have left */ |
320 | char *msg; /* Message map creator may have left */ |
322 | char *maplore; /* Map lore information */ |
321 | char *maplore; /* Map lore information */ |
323 | char *tile_path[4]; /* path to adjoining maps */ |
322 | char *tile_path[4]; /* path to adjoining maps */ |
324 | struct mapdef *tile_map[4]; /* Next map, linked list */ |
323 | struct mapdef *tile_map[4]; /* Next map, linked list */ |
|
|
324 | char path[HUGE_BUF]; /* Filename of the map */ |
325 | } mapstruct; |
325 | } mapstruct; |
326 | |
326 | |
327 | /* This is used by get_rangevector to determine where the other |
327 | /* This is used by get_rangevector to determine where the other |
328 | * creature is. get_rangevector takes into account map tiling, |
328 | * creature is. get_rangevector takes into account map tiling, |
329 | * so you just can not look the the map coordinates and get the |
329 | * so you just can not look the the map coordinates and get the |