 |
Crossfire Client, Trunk
|
Go to the documentation of this file.
127 gint16
mapdata_face(
int x,
int y,
int layer) __attribute__((deprecated));
172 void pl_mpos(
int *px,
int *py);
gint16 mapdata_bigface_head(int x, int y, int layer, int *ww, int *hh)
int relative_direction(int dx, int dy)
Given a relative tile coordinate, determine its compass direction.
MapCellState
A map cell can be in one of three states:
gint16 mapdata_face_info(int mx, int my, int layer, int *dx, int *dy)
Return the face number of the pixmap in the given map cell and set the offset pointers to indicate wh...
PlayerPosition script_pos
Position of the player reported to client scripts.
void mapdata_newmap(void)
Clears the map view.
gint16 mapdata_bigface(int x, int y, int layer, int *ww, int *hh)
Returns the face to display at a given location.
int move_to_x
Move to coordinates on the current map.
void mapdata_set_check_space(int x, int y)
void mapdata_clear_old(int x, int y)
Prepare a map cell, which may contain old fog of war data, for new visible map data.
void mapdata_free(void)
Deallocate map data.
void mapdata_scroll(int dx, int dy)
Scrolls the map view.
struct MapCellLayer heads[MAXLAYERS]
void mapdata_set_size(int viewx, int viewy)
Initializes the module.
void mapdata_set_darkness(int x, int y, int darkness)
void mapdata_animation(void)
The heads[] in the mapcell is used for single part objects or the head piece for multipart.
void mapdata_clear_label(int px, int py)
void pl_mpos(int *px, int *py)
Compute player position in map coordinates.
struct MapCellTailLayer tails[MAXLAYERS]
int mapdata_is_inside(int x, int y)
Checks whether the given coordinates are within the current display size (as set by mapdata_set_size)...
bool mapdata_contains(int x, int y)
Determine whether the map data contains the given cell.
void mapdata_clear_space(int x, int y)
void set_move_to(int dx, int dy)
bool mapdata_can_smooth(int x, int y, int layer)
gint16 mapdata_face(int x, int y, int layer) __attribute__((deprecated))
Returns the face to display at a given location.
void mapdata_set_face_layer(int x, int y, gint16 face, int layer)
void mapdata_add_label(int x, int y, int subtype, const char *label)
#define MAXLAYERS
The protocol supports 10 layers, so set MAXLAYERS accordingly.
void mapdata_set_smooth(int x, int y, guint8 smooth, int layer)
void mapdata_size(int *x, int *y)
Determine the size of the internal fog-of-war map.
struct MapCell * mapdata_cell(int x, int y)
Get the stored map cell at the given map coordinate.
void mapdata_set_anim_layer(int x, int y, guint16 anim, guint8 anim_speed, int layer)