Crossfire Client, Trunk
|
Macros | |
#define | NUM_LAYERS (MAP1_LAYERS-1) |
Functions | |
int | ExtSmooth (unsigned char *data, int len, int x, int y, int layer) |
void | MagicMapCmd (unsigned char *data, int len) |
void | Map2Cmd (unsigned char *data, int len) |
void | map_scrollCmd (char *data, int len) |
void | MapExtendedCmd (unsigned char *data, int len) |
void | NewmapCmd (unsigned char *data, int len) |
#define NUM_LAYERS (MAP1_LAYERS-1) |
Definition at line 2074 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 2224 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().
void MagicMapCmd | ( | unsigned char * | data, |
int | len | ||
) |
data | |
len |
Definition at line 2324 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.
void Map2Cmd | ( | unsigned char * | data, |
int | len | ||
) |
data | |
len |
Definition at line 2081 of file commands.c.
References display_map_doneupdate(), FACE_IS_ANIM, GetShort_String(), LOG(), LOG_WARNING, MAP2_COORD_OFFSET, MAP2_LAYER_START, MAP2_TYPE_CLEAR, MAP2_TYPE_DARKNESS, 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, and MAXLAYERS.
void map_scrollCmd | ( | char * | data, |
int | len | ||
) |
Scrolls the map on the client by some amount.
data | |
len |
Definition at line 2194 of file commands.c.
References display_map_doneupdate(), LOG(), LOG_WARNING, and mapdata_scroll().
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 2262 of file commands.c.
References display_map_doneupdate(), EMI_HASMOREBITS, EMI_NOREDRAW, EMI_SMOOTH, ExtSmooth(), GetChar_String(), GetShort_String(), mapupdatesent, and NUM_LAYERS.
void NewmapCmd | ( | unsigned char * | data, |
int | len | ||
) |
data | |
len |
Definition at line 2055 of file commands.c.
References mapdata_newmap().