… | |
… | |
39 | |
39 | |
40 | #define NUM_LOOK_OBJECTS 50 |
40 | #define NUM_LOOK_OBJECTS 50 |
41 | |
41 | |
42 | struct MapCell |
42 | struct MapCell |
43 | { |
43 | { |
|
|
44 | tag_t player; // this is, unfortunately, very wasteful of memory space, but pretty bandwidth-efficient |
|
|
45 | int count; /* This is really darkness in the map1 command */ |
44 | short faces[MAP_LAYERS]; |
46 | short faces[MAP_LAYERS]; |
45 | uint16 smooth[MAP_LAYERS]; |
47 | uint16 smooth[MAP_LAYERS]; |
46 | int count; /* This is really darkness in the map1 command */ |
|
|
47 | unsigned char stat_hp; // health of something in this space, or 0 |
48 | unsigned char stat_hp; // health of something in this space, or 0 |
48 | tag_t player; // this is, unfortunately, very wasteful of memory space, but pretty bandwidth-efficient |
49 | unsigned char flags; |
49 | }; |
50 | }; |
50 | |
51 | |
51 | /* This basically defines the largest size an |
52 | /* This basically defines the largest size an |
52 | * archetype may be - it is used for allocation of |
53 | * archetype may be - it is used for allocation of |
53 | * some structures, as well as determining how far |
54 | * some structures, as well as determining how far |
54 | * we should look for the heads of big images. |
55 | * we should look for the heads of big images. |
55 | */ |
56 | */ |
56 | #define MAX_HEAD_OFFSET 8 |
57 | #define MAX_HEAD_OFFSET 8 |
57 | |
58 | |
58 | # define MAX_CLIENT_X (MAP_CLIENT_X + MAX_HEAD_OFFSET) |
59 | #define MAX_CLIENT_X (MAP_CLIENT_X + MAX_HEAD_OFFSET) |
59 | #define MAX_CLIENT_Y (MAP_CLIENT_Y + MAX_HEAD_OFFSET) |
60 | #define MAX_CLIENT_Y (MAP_CLIENT_Y + MAX_HEAD_OFFSET) |
60 | |
61 | |
61 | struct Map |
62 | struct Map |
62 | { |
63 | { |
63 | struct MapCell cells[MAX_CLIENT_X][MAX_CLIENT_Y]; |
64 | struct MapCell cells[MAX_CLIENT_X][MAX_CLIENT_Y]; |