Crossfire Client, Trunk
Public Attributes | List of all members
BigCell Struct Reference
Collaboration diagram for BigCell:
Collaboration graph

Public Attributes

struct MapCellLayer head
 
guint8 layer
 
struct BigCellnext
 
struct BigCellprev
 
struct MapCellTailLayer tail
 
guint16 x
 
guint16 y
 

Detailed Description

The struct BigCell describes a tile outside the view area. head contains the head (as sent by the server), tail contains the expanded big face. tail is not set for the head cell, that is (for example) a big face with size 2x3 occupies exactly 6 entries: 1 head and 5 tails.

next and prev for a doubly linked list of all currently active entries. Unused entries are set to NULL.

x, y, and layer contain the position of the cell in the bigfaces[] array. This information allows to find the corresponding bigfaces[] cell when iterating through the next pointers.

Definition at line 78 of file mapdata.c.

Member Data Documentation

◆ head

struct MapCellLayer BigCell::head

◆ layer

guint8 BigCell::layer

◆ next

struct BigCell* BigCell::next

◆ prev

struct BigCell* BigCell::prev

Definition at line 80 of file mapdata.c.

Referenced by expand_clear_bigface_from_layer(), expand_set_bigface(), and mapdata_init().

◆ tail

struct MapCellTailLayer BigCell::tail

Definition at line 83 of file mapdata.c.

Referenced by expand_clear_bigface(), expand_set_bigface(), mapdata_bigface(), and mapdata_init().

◆ x

guint16 BigCell::x

◆ y

guint16 BigCell::y

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