00001 /* ---------------------------------------------------------------------- * 00002 * lintypes.h 00003 * This file is part of lincity. 00004 * Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2001. 00005 * ---------------------------------------------------------------------- */ 00006 #ifndef __lintypes_h__ 00007 #define __lintypes_h__ 00008 00009 #ifndef TRUE 00010 #define TRUE 1 00011 #endif 00012 #ifndef FALSE 00013 #define FALSE 0 00014 #endif 00015 00016 #define NUM_OF_TYPES 400 00017 #define NUM_OF_GROUPS 42 00018 #define GROUP_NAME_LEN 20 00019 00020 struct GROUP 00021 { 00022 char name[GROUP_NAME_LEN+1]; /* name of group */ 00023 unsigned short no_credit; /* TRUE if need credit to build */ 00024 unsigned short group; /* This is redundant: it must match 00025 the index into the table */ 00026 unsigned short size; 00027 int colour; /* summary map colour */ 00028 int cost_mul; /* group cost multiplier */ 00029 int bul_cost; /* group bulldoze cost */ 00030 int fire_chance; /* probability of fire */ 00031 int cost; /* group cost */ 00032 int tech; /* group cost */ 00033 }; 00034 00035 struct TYPE 00036 { 00037 int group; /* What group does this type belong to? */ 00038 char* graphic; /* Bitmap of the graphic */ 00039 }; 00040 00041 int get_group_of_type (short selected_type); 00042 void set_map_groups (void); 00043 int get_type_cost (short type); 00044 int get_group_cost (short group); 00045 void get_type_name (short type, char * s); 00046 00047 extern struct GROUP main_groups[NUM_OF_GROUPS]; 00048 extern struct TYPE main_types[NUM_OF_TYPES]; 00049 00050 #endif /* __lintypes_h__ */
1.3.9.1