Crossfire Client, Branch
R11627
|
The heads[] in the mapcell is used for single part objects or the head piece for multipart. More...
#include <mapdata.h>
Data Fields | |
uint8 | cleared:1 |
uint8 | darkness |
uint8 | have_darkness:1 |
struct MapCellLayer | heads [MAXLAYERS] |
uint8 | need_resmooth:1 |
uint8 | need_update:1 |
uint16 | smooth [MAXLAYERS] |
struct MapCellLayer | tails [MAXLAYERS] |
The heads[] in the mapcell is used for single part objects or the head piece for multipart.
The easiest way to think about it is that the heads[] contains the map information as specifically sent from the server. For the heads value, the size_x and size_y represent how many spaces (up and to the left) that image extends into. The tails are values that the client fills in - if we get a big head value, we fill in the tails value so that the display logic can easily redraw one space. In this case, the size_ values are offsets that point to the head. In this way, the draw logic can look at the size of the image, look at these values, and know what portion of it to draw.
Definition at line 84 of file mapdata.h.
Referenced by display_mapcell(), mapdata_animation(), mapdata_bigface(), mapdata_clear_old(), mapdata_clear_space(), mapdata_scroll(), mapdata_set_anim_layer(), mapdata_set_check_space(), mapdata_set_face_layer(), and send_map().
Definition at line 80 of file mapdata.h.
Referenced by display_mapcell(), mapdata_clear_old(), mapdata_set_anim_layer(), send_map(), and set_darkness().
Definition at line 82 of file mapdata.h.
Referenced by display_mapcell(), mapdata_clear_old(), mapdata_set_anim_layer(), mapdata_set_check_space(), send_map(), and set_darkness().
struct MapCellLayer MapCell::heads[MAXLAYERS] |
Definition at line 77 of file mapdata.h.
Referenced by drawsmooth(), expand_clear_face(), expand_clear_face_from_layer(), expand_need_update_from_layer(), expand_set_face(), mapdata_animation(), mapdata_bigface(), mapdata_clear_space(), mapdata_face(), mapdata_set_anim_layer(), mapdata_set_check_space(), and send_map().
Definition at line 83 of file mapdata.h.
Referenced by expand_clear_face(), ExtSmooth(), gtk_draw_map(), mapdata_set_smooth(), mark_resmooth(), and send_map().
Definition at line 81 of file mapdata.h.
Referenced by display_map_doneupdate(), expand_clear_bigface(), expand_clear_face(), expand_need_update(), expand_set_bigface(), expand_set_face(), gtk_draw_map(), mapdata_clear_space(), mapdata_newmap(), mapdata_scroll(), mapdata_set_anim_layer(), mapdata_set_check_space(), mapdata_set_face_layer(), send_map(), and set_darkness().
Definition at line 79 of file mapdata.h.
Referenced by drawsmooth(), ExtSmooth(), mapdata_animation(), mapdata_set_smooth(), mark_resmooth(), and send_map().
struct MapCellLayer MapCell::tails[MAXLAYERS] |
Definition at line 78 of file mapdata.h.
Referenced by expand_clear_face(), expand_set_face(), mapdata_bigface(), mapdata_set_check_space(), and send_map().