… | |
… | |
38 | |
38 | |
39 | #define NUM_LOOK_OBJECTS 50 |
39 | #define NUM_LOOK_OBJECTS 50 |
40 | |
40 | |
41 | struct MapCell |
41 | struct MapCell |
42 | { |
42 | { |
43 | tag_t player; // this is, unfortunately, very wasteful of memory space, but pretty bandwidth-efficient |
43 | UUID player; // this is, unfortunately, very wasteful of memory space, but pretty bandwidth-efficient |
44 | int count; /* This is really darkness in the map1 command */ |
44 | int count; /* This is really darkness in the map1 command */ |
45 | short faces[MAP_LAYERS]; |
45 | uint16 faces[MAP_LAYERS]; |
46 | uint16 smooth[MAP_LAYERS]; |
46 | uint16 smooth[MAP_LAYERS]; |
47 | unsigned char stat_hp; // health of something in this space, or 0 |
47 | unsigned char stat_hp; // health of something in this space, or 0 |
48 | unsigned char flags; |
48 | unsigned char flags; |
49 | }; |
49 | }; |
50 | |
50 | |
… | |
… | |
144 | uint16 ACC (RW, look_position); /* start of drawing of look window */ |
144 | uint16 ACC (RW, look_position); /* start of drawing of look window */ |
145 | uint8 ACC (RW, mapx), ACC (RW, mapy); /* How large a map the client wants */ |
145 | uint8 ACC (RW, mapx), ACC (RW, mapy); /* How large a map the client wants */ |
146 | uint8 ACC (RW, itemcmd); /* What version of the 'item' protocol command to use */ |
146 | uint8 ACC (RW, itemcmd); /* What version of the 'item' protocol command to use */ |
147 | uint8 ACC (RW, faceset); /* Set the client is using, default 0 */ |
147 | uint8 ACC (RW, faceset); /* Set the client is using, default 0 */ |
148 | |
148 | |
149 | maptile *ACC (RW, current_map); // CF+ last/current player map |
149 | maptile *ACC (RW, current_map); // CF+ last/current player map |
150 | int ACC (RW, current_x), ACC (RW, current_y); // CF+ last/current map position |
150 | int ACC (RW, current_x), ACC (RW, current_y); // CF+ last/current map position |
151 | char ACC (RW, client)[64]; // CF+ client name/version |
151 | char ACC (RW, client)[64]; // CF+ client name/version |
152 | }; |
152 | }; |
153 | |
153 | |
154 | #define CLIENT_SUPPORT_READABLES(__sockPtr,__type)\ |
154 | #define CLIENT_SUPPORT_READABLES(__sockPtr,__type)\ |