Crossfire Client, Trunk
MapCell Struct Reference

The heads[] in the mapcell is used for single part objects or the head piece for multipart. More...

#include <mapdata.h>

+ Collaboration diagram for MapCell:

Data Fields

guint8 darkness
 
struct MapCellLayer heads [MAXLAYERS]
 
struct MapLabellabel
 
guint8 need_resmooth:1
 
guint8 need_update:1
 
guint8 smooth [MAXLAYERS]
 
enum MapCellState state:2
 
struct MapCellTailLayer tails [MAXLAYERS]
 

Detailed Description

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 62 of file mapdata.h.

Field Documentation

◆ darkness

guint8 MapCell::darkness

◆ heads

◆ label

struct MapLabel* MapCell::label

Definition at line 66 of file mapdata.h.

Referenced by map_draw_labels(), mapdata_add_label(), and mapdata_clear_label().

◆ need_resmooth

guint8 MapCell::need_resmooth

Definition at line 70 of file mapdata.h.

Referenced by expand_clear_face(), ExtSmooth(), mapdata_set_smooth(), and mark_resmooth().

◆ need_update

◆ smooth

guint8 MapCell::smooth[MAXLAYERS]

◆ state

enum MapCellState MapCell::state

Definition at line 71 of file mapdata.h.

Referenced by mapdata_animation(), mapdata_bigface(), mapdata_clear(), and mapdata_clear_old().

◆ tails


The documentation for this struct was generated from the following file: