Crossfire Server, Branches 1.12  R18729
bmappair Struct Reference
+ Collaboration diagram for bmappair:

Data Fields

char * name
 
unsigned int number
 

Detailed Description

bmappair and xbm are used when looking for the image id numbers of a face by name. xbm is sorted alphabetically so that bsearch can be used to quickly find the entry for a name. the number is then an index into the new_faces array. This data is redundant with new_face information - the difference is that this data gets sorted, and that doesn't necessarily happen with the new_face data - when accessing new_face[some number], that some number corresponds to the face at that number - for xbm, it may not. At current time, these do in fact match because the bmaps file is created in a sorted order.

Definition at line 52 of file image.c.

Field Documentation

char* bmappair::name
unsigned int bmappair::number

Definition at line 54 of file image.c.

Referenced by find_face(), and read_bmap_names().


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