Crossfire Client, Trunk  R20507
Data Fields
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:
Collaboration graph

Data Fields

guint8 cleared:1
 
guint8 darkness
 
guint8 have_darkness:1
 
struct MapCellLayer heads [MAXLAYERS]
 
guint8 need_resmooth:1
 
guint8 need_update:1
 
guint16 smooth [MAXLAYERS]
 
struct MapCellLayer 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 49 of file mapdata.h.

Field Documentation

◆ cleared

guint8 MapCell::cleared

◆ darkness

guint8 MapCell::darkness

◆ have_darkness

guint8 MapCell::have_darkness

◆ heads

struct MapCellLayer MapCell::heads[MAXLAYERS]

◆ need_resmooth

guint8 MapCell::need_resmooth

◆ need_update

guint8 MapCell::need_update

◆ smooth

guint16 MapCell::smooth[MAXLAYERS]

◆ tails

struct MapCellLayer MapCell::tails[MAXLAYERS]

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