Crossfire Client, Trunk
|
#include <mapdata.h>
Public Attributes | |
guint8 | darkness |
struct MapCellLayer | heads [MAXLAYERS] |
guint8 | need_resmooth:1 |
guint8 | need_update:1 |
guint8 | smooth [MAXLAYERS] |
enum MapCellState | state:2 |
struct MapCellTailLayer | 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.
guint8 MapCell::darkness |
Definition at line 67 of file mapdata.h.
Referenced by mapcell_darkness(), mapdata_clear_old(), mapdata_set_check_space(), mapdata_set_darkness(), and set_darkness().
struct MapCellLayer MapCell::heads[MAXLAYERS] |
Definition at line 64 of file mapdata.h.
Referenced by clear_cells(), drawsmooth(), expand_clear_face(), expand_clear_face_from_layer(), expand_need_update_from_layer(), expand_set_face(), mapdata_animation(), mapdata_bigface(), mapdata_can_smooth(), mapdata_clear(), mapdata_face(), mapdata_face_info(), mapdata_set_anim_layer(), and mapdata_set_check_space().
guint8 MapCell::need_resmooth |
Definition at line 69 of file mapdata.h.
Referenced by expand_clear_face(), ExtSmooth(), mapdata_set_smooth(), and mark_resmooth().
guint8 MapCell::need_update |
Definition at line 68 of file mapdata.h.
Referenced by expand_clear_bigface(), expand_clear_face(), expand_need_update(), expand_set_bigface(), expand_set_face(), mapdata_clear(), mapdata_clear_old(), mapdata_newmap(), mapdata_scroll(), mapdata_set_face_layer(), and set_darkness().
guint8 MapCell::smooth[MAXLAYERS] |
Definition at line 66 of file mapdata.h.
Referenced by drawsmooth(), ExtSmooth(), mapdata_can_smooth(), mapdata_set_smooth(), and mark_resmooth().
enum MapCellState MapCell::state |
Definition at line 70 of file mapdata.h.
Referenced by mapdata_animation(), mapdata_bigface(), mapdata_clear(), and mapdata_clear_old().
struct MapCellTailLayer MapCell::tails[MAXLAYERS] |
Definition at line 65 of file mapdata.h.
Referenced by expand_clear_face(), expand_set_face(), mapdata_bigface(), mapdata_face_info(), and mapdata_set_check_space().