version 1.30 | | version 1.31 |
---|
| | |
/* | | /* |
* static char *rcsid_define_h = | | * static char *rcsid_define_h = |
* "$Id: map.h,v 1.30 2005/08/31 20:07:22 tchize Exp $"; | | * "$Id: map.h,v 1.31 2005/10/03 03:29:41 cavesomething Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* this should be the one we fall back on as the default */ | | * this should be the one we fall back on as the default */ |
} region; | | } region; |
| | |
| | |
| | typedef struct shopitem { |
| | const char *name; /* name of the item in question, null if it is the default item */ |
| | const char *name_pl; /* plural name */ |
| | int typenum; /* itemtype number we need to match 0 if it is the default price*/ |
| | sint8 strength; /* the degree of specialisation the shop has in this item, |
| | * as a percentage from -100 to 100 */ |
| | int index; /* being the size of the shopitems array.*/ |
| | } shopitems; |
| | |
/* In general, code should always use the macros | | /* In general, code should always use the macros |
* above (or functions in map.c) to access many of the | | * above (or functions in map.c) to access many of the |
* values in the map structure. Failure to do this will | | * values in the map structure. Failure to do this will |
| | |
sint8 winddir; /* direction of wind */ | | sint8 winddir; /* direction of wind */ |
sint8 sky; /* sky conditions */ | | sint8 sky; /* sky conditions */ |
int wpartx,wparty; /*Highly fasten conversion between worldmap and weathermap*/ | | int wpartx,wparty; /*Highly fasten conversion between worldmap and weathermap*/ |
| | shopitems *shopitems; /* a semi-colon seperated list of item-types the map's shop will trade in */ |
| | char *shoprace; /* the preffered race of the local shopkeeper */ |
| | double shopgreed; /* how much our shopkeeper overcharges */ |
| | uint64 shopmin; /* minimum price a shop will trade for */ |
| | uint64 shopmax; /* maximum price a shop will offer */ |
char *msg; /* Message map creator may have left */ | | char *msg; /* Message map creator may have left */ |
char *tile_path[4]; /* path to adjoining maps */ | | char *tile_path[4]; /* path to adjoining maps */ |
struct mapdef *tile_map[4]; /* Next map, linked list */ | | struct mapdef *tile_map[4]; /* Next map, linked list */ |