Crossfire Client, Trunk  R20507
Macros | Functions
Server->Client map command functions.

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)
 

Detailed Description

Macro Definition Documentation

#define NUM_LAYERS   (MAP1_LAYERS-1)

Definition at line 2045 of file commands.c.

Referenced by MapExtendedCmd().

Function Documentation

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.

Parameters
data
len
x
y
layer

Definition at line 2195 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 
)
Parameters
data
len

Definition at line 2295 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 
)
void map_scrollCmd ( char *  data,
int  len 
)

Scrolls the map on the client by some amount.

Parameters
data
len

Definition at line 2165 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.

Parameters
data
len

Definition at line 2233 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 
)
Parameters
data
len

Definition at line 2026 of file commands.c.

References mapdata_newmap().

Here is the call graph for this function: