src/hcode/btech/mech.partnames.h File Reference

#include "p.mech.partnames.h"

Include dependency graph for mech.partnames.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PN

Defines

#define PACKED_PART(id, brand)   (NUM_ITEMS * brand + id)
#define UNPACK_PART(from, id, brand)   id = from % NUM_ITEMS; brand = from / NUM_ITEMS

Functions

char * get_parts_short_name (int, int)
char * get_parts_long_name (int, int)
char * get_parts_vlong_name (int, int)

Variables

PN ** short_sorted
PN ** long_sorted
PN ** vlong_sorted
int object_count


Define Documentation

#define PACKED_PART ( id,
brand   )     (NUM_ITEMS * brand + id)

Definition at line 32 of file mech.partnames.h.

Referenced by create_brandname(), and fun_btpartmatch().

#define UNPACK_PART ( from,
id,
brand   )     id = from % NUM_ITEMS; brand = from / NUM_ITEMS

Definition at line 33 of file mech.partnames.h.

Referenced by find_matching_long_part(), find_matching_short_part(), find_matching_vlong_part(), fun_btstores(), list_matching(), and partname_func().


Function Documentation

char* get_parts_long_name ( int  ,
int   
)

Referenced by ammo_expedinture_check(), BlowDumpingAmmo(), critstatus_func(), mech_dump(), mech_dump_event(), mech_Rfixstuff(), mech_unjam_ammo_event(), mech_weight_sub_mech(), mech_weight_sub_veh(), part_name(), and weaponstatus_func().

char* get_parts_short_name ( int  ,
int   
)

char* get_parts_vlong_name ( int  ,
int   
)

Referenced by critslot_func(), dump_item(), fun_btaddstores(), and part_name_long().


Variable Documentation

PN** long_sorted

Definition at line 35 of file mech.partnames.c.

Referenced by find_matching_long_part(), initialize_partname_tables(), and insert_sorted_brandname().

int object_count

Definition at line 37 of file mech.partnames.c.

Referenced by find_matching_long_part(), fun_btstores(), initialize_partname_tables(), list_matching(), ListForms(), and mmdb_db_read().

PN** short_sorted

Definition at line 34 of file mech.partnames.c.

Referenced by find_matching_short_part(), find_matching_vlong_part(), fun_btstores(), initialize_partname_tables(), insert_sorted_brandname(), list_matching(), and ListForms().

PN** vlong_sorted

Definition at line 36 of file mech.partnames.c.

Referenced by initialize_partname_tables(), and insert_sorted_brandname().


Generated on Mon May 28 04:25:37 2007 for BattletechMUX by  doxygen 1.4.7