![]() |
Crossfire Client, Trunk
|
Macros | |
| #define | NUM_LAYERS (MAP1_LAYERS-1) |
Functions | |
| int | ExtSmooth (unsigned char *data, int len, int x, int y, int layer) |
| Extract smoothing infos from an extendedmapinfo packet part data is located at the beginning of the smooth datas. More... | |
| void | MagicMapCmd (unsigned char *data, int len) |
| void | Map2Cmd (unsigned char *data, int len) |
| void | map_scrollCmd (char *data, int len) |
| Scrolls the map on the client by some amount. More... | |
| void | MapExtendedCmd (unsigned char *data, int len) |
| Handle MapExtended command Warning! if you add commands to extended, take care that the 'layer' argument of main loop is the opposite of the layer of the map so if you reference a layer, use NUM_LAYERS-layer. More... | |
| void | NewmapCmd (unsigned char *data, int len) |
| #define NUM_LAYERS (MAP1_LAYERS-1) |
Definition at line 2075 of file commands.c.
| int ExtSmooth | ( | unsigned char * | data, |
| int | len, | ||
| int | x, | ||
| int | y, | ||
| int | layer | ||
| ) |
Extract smoothing infos from an extendedmapinfo packet part data is located at the beginning of the smooth datas.
| data | |
| len | |
| x | |
| y | |
| layer |
Definition at line 2265 of file commands.c.
References GetChar_String(), mapdata_cell(), mapdata_contains(), MapCell::need_resmooth, pl_pos, MapCell::smooth, PlayerPosition::x, and PlayerPosition::y.
Referenced by MapExtendedCmd().
Here is the call graph for this function:
Here is the caller graph for this function:| void MagicMapCmd | ( | unsigned char * | data, |
| int | len | ||
| ) |
| data | |
| len |
Definition at line 2365 of file commands.c.
References cpl, draw_magic_map(), LOG(), LOG_WARNING, Player_Struct::magicmap, Player_Struct::mmapx, Player_Struct::mmapy, Player_Struct::pmapx, and Player_Struct::pmapy.
Here is the call graph for this function:| void Map2Cmd | ( | unsigned char * | data, |
| int | len | ||
| ) |
| data | |
| len |
Definition at line 2082 of file commands.c.
References debug_protocol, display_map_doneupdate(), FACE_IS_ANIM, GetShort_String(), LOG(), LOG_INFO, LOG_WARNING, MAP2_COORD_OFFSET, MAP2_LAYER_START, MAP2_TYPE_CLEAR, MAP2_TYPE_DARKNESS, MAP2_TYPE_LABEL, mapdata_add_label(), mapdata_clear_label(), mapdata_clear_old(), mapdata_clear_space(), mapdata_scroll(), mapdata_set_anim_layer(), mapdata_set_check_space(), mapdata_set_darkness(), mapdata_set_face_layer(), mapdata_set_smooth(), mapupdatesent, MAX_VIEW, MAXLAYERS, pl_pos, PlayerPosition::x, and PlayerPosition::y.
Here is the call graph for this function:| void map_scrollCmd | ( | char * | data, |
| int | len | ||
| ) |
Scrolls the map on the client by some amount.
| data | |
| len |
Definition at line 2235 of file commands.c.
References display_map_doneupdate(), LOG(), LOG_WARNING, and mapdata_scroll().
Here is the call graph for this function:| void MapExtendedCmd | ( | unsigned char * | data, |
| int | len | ||
| ) |
Handle MapExtended command Warning! if you add commands to extended, take care that the 'layer' argument of main loop is the opposite of the layer of the map so if you reference a layer, use NUM_LAYERS-layer.
| data | |
| len |
Definition at line 2303 of file commands.c.
References display_map_doneupdate(), EMI_HASMOREBITS, EMI_NOREDRAW, EMI_SMOOTH, ExtSmooth(), GetChar_String(), GetShort_String(), mapupdatesent, and NUM_LAYERS.
Here is the call graph for this function:| void NewmapCmd | ( | unsigned char * | data, |
| int | len | ||
| ) |
| data | |
| len |
Definition at line 2056 of file commands.c.
References mapdata_newmap().
Here is the call graph for this function: