… | |
… | |
48 | * map pointers. |
48 | * map pointers. |
49 | */ |
49 | */ |
50 | #define MAGIC_MAP_SIZE 50 |
50 | #define MAGIC_MAP_SIZE 50 |
51 | #define MAGIC_MAP_HALF MAGIC_MAP_SIZE/2 |
51 | #define MAGIC_MAP_HALF MAGIC_MAP_SIZE/2 |
52 | |
52 | |
53 | #define MAP_LAYERS 3 |
53 | #define MAP_LAYERS 3 |
54 | |
54 | |
55 | // tile map index |
55 | // tile map index |
56 | enum { |
56 | enum { |
57 | TILE_UP = 0, |
57 | TILE_NORTH, |
58 | TILE_RIGHT = 1, |
58 | TILE_EAST, |
|
|
59 | TILE_SOUTH, |
|
|
60 | TILE_WEST, |
|
|
61 | TILE_UP, |
59 | TILE_DOWN = 2, |
62 | TILE_DOWN, |
60 | TILE_LEFT = 3, |
63 | TILE_NUM, |
61 | }; |
64 | }; |
62 | |
65 | |
63 | /* Values for in_memory below */ |
66 | /* Values for in_memory below */ |
64 | enum { |
67 | enum { |
65 | MAP_ACTIVE, |
68 | MAP_ACTIVE, |
… | |
… | |
288 | double ACC (RW, shopgreed); /* how much our shopkeeper overcharges */ |
291 | double ACC (RW, shopgreed); /* how much our shopkeeper overcharges */ |
289 | sint64 ACC (RW, shopmin); /* minimum price a shop will trade for */ |
292 | sint64 ACC (RW, shopmin); /* minimum price a shop will trade for */ |
290 | sint64 ACC (RW, shopmax); /* maximum price a shop will offer */ |
293 | sint64 ACC (RW, shopmax); /* maximum price a shop will offer */ |
291 | shstr ACC (RW, msg); /* Message map creator may have left */ |
294 | shstr ACC (RW, msg); /* Message map creator may have left */ |
292 | shstr ACC (RW, maplore); /* Map lore information */ |
295 | shstr ACC (RW, maplore); /* Map lore information */ |
293 | shstr ACC (RW, tile_path[4]); /* path to adjoining maps */ |
296 | shstr ACC (RW, tile_path[TILE_NUM]); /* path to adjoining maps */ |
294 | maptile *ACC (RW, tile_map[4]); /* Next map, linked list */ |
297 | maptile *ACC (RW, tile_map[TILE_NUM]); /* Next map, linked list */ |
295 | shstr ACC (RW, path); /* Filename of the map */ |
298 | shstr ACC (RW, path); /* Filename of the map */ |
296 | uint64 ACC (RW, max_volume); // maximum volume for all items on a mapspace |
299 | uint64 ACC (RW, max_volume); // maximum volume for all items on a mapspace |
297 | int ACC (RW, max_items); // maximum number of items on a mapspace |
300 | int ACC (RW, max_items); // maximum number of items on a mapspace |
298 | |
301 | |
299 | //-GPL |
302 | //-GPL |