Crossfire Client, Trunk  R19124
Data Fields
MapCell Struct Reference

#include <mapdata.h>

Collaboration diagram for MapCell:
Collaboration graph
[legend]

Data Fields

struct MapCellLayer heads [MAXLAYERS]
struct MapCellLayer tails [MAXLAYERS]
uint16 smooth [MAXLAYERS]
uint8 darkness
uint8 need_update:1
uint8 have_darkness:1
uint8 need_resmooth:1
uint8 cleared:1

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


Field Documentation

Definition at line 88 of file mapdata.h.

Definition at line 84 of file mapdata.h.

Definition at line 86 of file mapdata.h.

Definition at line 81 of file mapdata.h.

Definition at line 87 of file mapdata.h.

Definition at line 85 of file mapdata.h.

Definition at line 83 of file mapdata.h.

Definition at line 82 of file mapdata.h.


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