src/hcode/btech/mech.partnames.h

Go to the documentation of this file.
00001 
00002 /*
00003  * $Id: mech.partnames.h,v 1.1.1.1 2005/01/11 21:18:21 kstevens Exp $
00004  *
00005  * Author: Markus Stenberg <fingon@iki.fi>
00006  *
00007  *  Copyright (c) 1997 Markus Stenberg
00008  *  Copyright (c) 1998-2002 Thomas Wouters
00009  *  Copyright (c) 2000-2002 Cord Awtry
00010  *       All rights reserved
00011  *
00012  * Created: Sun Mar  9 14:02:41 1997 fingon
00013  * Last modified: Sat Jun  6 21:51:41 1998 fingon
00014  *
00015  */
00016 
00017 #ifndef MECH_PARTNAMES_H
00018 #define MECH_PARTNAMES_H
00019 
00020 typedef struct {
00021     char *shorty;
00022     char *longy;
00023     char *vlongy;
00024     int index;
00025 } PN;
00026 
00027 extern PN **short_sorted;
00028 extern PN **long_sorted;
00029 extern PN **vlong_sorted;
00030 extern int object_count;
00031 
00032 #define PACKED_PART(id, brand) (NUM_ITEMS * brand + id)
00033 #define UNPACK_PART(from,id,brand) \
00034 id = from % NUM_ITEMS; brand = from / NUM_ITEMS
00035 
00036 char *get_parts_short_name(int, int);
00037 char *get_parts_long_name(int, int);
00038 char *get_parts_vlong_name(int, int);
00039 
00040 #include "p.mech.partnames.h"
00041 
00042 #endif                          /* MECH_PARTNAMES_H */

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