00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #include <config.h>
00035
00036 #include "land.h"
00037 #include "misc.h"
00038 #include "mission.h"
00039 #include "nat.h"
00040 #include "news.h"
00041 #include "nsc.h"
00042 #include "nuke.h"
00043 #include "plague.h"
00044 #include "plane.h"
00045 #include "retreat.h"
00046 #include "sect.h"
00047 #include "ship.h"
00048 #include "treaty.h"
00049
00050 struct symbol agreement_statuses[] = {
00051 {AGREE_FREE, "free"},
00052 {AGREE_PROPOSED, "proposed"},
00053 {AGREE_SIGNED, "signed"},
00054 {0, NULL}
00055 };
00056
00057 struct symbol land_chr_flags[] = {
00058 {L_ENGINEER, "engineer"},
00059 {L_SUPPLY, "supply"},
00060 {L_SECURITY, "security"},
00061 {L_LIGHT, "light"},
00062 {L_MARINE, "marine"},
00063 {L_RECON, "recon"},
00064 {L_RADAR, "radar"},
00065 {L_ASSAULT, "assault"},
00066 {L_FLAK, "flak"},
00067 {L_SPY, "spy"},
00068 {L_TRAIN, "train"},
00069 {L_HEAVY, "heavy"},
00070 {0, NULL}
00071 };
00072
00073 struct symbol level[] = {
00074 {-1, "none"},
00075 {NAT_TLEV, "technology"},
00076 {NAT_RLEV, "research"},
00077 {NAT_ELEV, "education"},
00078 {NAT_HLEV, "happiness"},
00079 {0, NULL}
00080 };
00081
00082 struct symbol meta_flags[] = {
00083 {NSC_DEITY, "deity"},
00084 {NSC_EXTRA, "extra"},
00085 {NSC_CONST, "const"},
00086 {NSC_BITS, "bits"},
00087 {0, NULL}
00088 };
00089
00090 struct symbol meta_type[] = {
00091 {NSC_LONG, "d"},
00092 {NSC_DOUBLE, "g"},
00093 {NSC_STRING, "s"},
00094 {NSC_CHAR, "d"},
00095 {NSC_UCHAR, "d"},
00096 {NSC_SHORT, "d"},
00097 {NSC_USHORT, "d"},
00098 {NSC_INT, "d"},
00099 {NSC_XCOORD, "d"},
00100 {NSC_YCOORD, "d"},
00101 {NSC_HIDDEN, "d"},
00102 {NSC_TIME, "d"},
00103 {NSC_FLOAT, "g"},
00104 {NSC_STRINGY,"c"},
00105 {NSC_NOTYPE, NULL}
00106 };
00107
00108 struct symbol missions[] = {
00109 {MI_NONE, "none"},
00110 {MI_INTERDICT, "interdiction"},
00111 {MI_SUPPORT, "support"},
00112 {MI_RESERVE, "reserve"},
00113 {MI_ESCORT, "escort"},
00114 {MI_AIR_DEFENSE, "air defense"},
00115 {MI_DSUPPORT, "defensive support"},
00116 {MI_OSUPPORT, "offensive support"},
00117 {0, NULL}
00118 };
00119
00120 struct symbol nation_flags[] = {
00121 {NF_INFORM, "inform"},
00122 {NF_FLASH, "flash"},
00123 {NF_BEEP, "beep"},
00124 {NF_COASTWATCH, "coastwatch"},
00125 {NF_SONAR, "sonar"},
00126 {NF_TECHLISTS, "techlists"},
00127 {NF_SACKED, "sacked"},
00128 {0, NULL}
00129 };
00130
00131 struct symbol nation_rejects[] = {
00132 {REJ_TELE, "telegrams"},
00133 {REJ_TREA, "treaties"},
00134 {REJ_ANNO, "announcements"},
00135 {REJ_LOAN, "loans"},
00136 {0, NULL}
00137 };
00138
00139 struct symbol nation_relations[] = {
00140 {-1, "unknown"},
00141 {AT_WAR, "at-war"},
00142 {SITZKRIEG, "sitzkrieg"},
00143 {MOBILIZATION, "mobilization"},
00144 {HOSTILE, "hostile"},
00145 {NEUTRAL, "neutral"},
00146 {FRIENDLY, "friendly"},
00147 {ALLIED, "allied"},
00148 {0, NULL}
00149 };
00150
00151 struct symbol nation_status[] = {
00152 {STAT_UNUSED, "unused"},
00153 {STAT_NEW, "new"},
00154 {STAT_VIS, "visitor"},
00155 {STAT_SANCT, "sanctuary"},
00156 {STAT_ACTIVE, "active"},
00157 {STAT_GOD, "deity"},
00158 {0, NULL}
00159 };
00160
00161 struct symbol nuke_chr_flags[] = {
00162 {N_NEUT, "neutron"},
00163 {0, NULL}
00164 };
00165
00166 struct symbol packing[] = {
00167 {IPKG, "inefficient"},
00168 {NPKG, "normal"},
00169 {WPKG, "warehouse"},
00170 {UPKG, "urban"},
00171 {BPKG, "bank"},
00172 {0, NULL}
00173 };
00174
00175 struct symbol page_headings[] = {
00176 {N_NOTUSED, "Comics"},
00177 {N_FOR, "Foreign Affairs"},
00178 {N_FRONT, "The Front Line"},
00179 {N_SEA, "The High Seas"},
00180 {N_SKY, "Sky Watch"},
00181 {N_MISS, "Guidance Systems"},
00182 {N_ARTY, "Firestorms"},
00183 {N_ECON, "Business & Economics"},
00184 {N_COLONY, "The Frontier"},
00185 {N_HOME, "The Home Front"},
00186 {N_SPY, "Espionage"},
00187 {N_TELE, "Telecommunications"},
00188 {0, NULL}
00189 };
00190
00191 struct symbol plague_stages[] = {
00192 {PLG_HEALTHY, "healthy"},
00193 {PLG_DYING, "dying"},
00194 {PLG_INFECT, "infect"},
00195 {PLG_INCUBATE, "incubate"},
00196 {PLG_EXPOSED, "exposed"},
00197 {0, NULL}
00198 };
00199
00200 struct symbol plane_chr_flags[] = {
00201 {P_T, "tactical"},
00202 {P_B, "bomber"},
00203 {P_F, "intercept"},
00204 {P_C, "cargo"},
00205 {P_V, "VTOL"},
00206 {P_M, "missile"},
00207 {P_L, "light"},
00208 {P_S, "spy"},
00209 {P_I, "image"},
00210 {P_O, "satellite"},
00211 {P_X, "stealth"},
00212 {P_N, "SDI"},
00213 {P_H, "half-stealth"},
00214 {P_E, "x-light"},
00215 {P_K, "helo"},
00216 {P_A, "ASW"},
00217 {P_P, "para"},
00218 {P_ESC, "escort"},
00219 {P_MINE, "mine"},
00220 {P_SWEEP, "sweep"},
00221 {P_MAR, "marine"},
00222 {0, NULL}
00223 };
00224
00225 struct symbol plane_flags[] = {
00226 {PLN_LAUNCHED, "launched"},
00227 {PLN_SYNCHRONOUS, "synchronous"},
00228 {PLN_AIRBURST, "airbust"},
00229 {0, NULL}
00230 };
00231
00232 struct symbol resources[] = {
00233
00234 {0, "none"},
00235 {offsetof(struct sctstr, sct_min), "min"},
00236 {offsetof(struct sctstr, sct_gmin), "gold"},
00237 {offsetof(struct sctstr, sct_fertil), "fert"},
00238 {offsetof(struct sctstr, sct_oil), "ocontent"},
00239 {offsetof(struct sctstr, sct_uran), "uran"},
00240 {0, NULL}
00241 };
00242
00243 struct symbol retreat_flags[] = {
00244 {RET_GROUP, "group"},
00245 {RET_INJURED, "injured"},
00246 {RET_TORPED, "torped"},
00247 {RET_SONARED, "sonared"},
00248 {RET_HELPLESS, "helpless"},
00249 {RET_BOMBED, "bombed"},
00250 {RET_DCHRGED, "depth-charged"},
00251 {RET_BOARDED, "boarded"},
00252 {0, NULL}
00253 };
00254
00255 struct symbol sector_navigation[] = {
00256 {NAV_NONE, "land"},
00257 {NAVOK, "sea"},
00258 {NAV_02, "harbor"},
00259 {NAV_CANAL, "canal"},
00260 {NAV_60, "bridge"},
00261 {0, NULL}
00262 };
00263
00264 struct symbol ship_chr_flags[] = {
00265 {M_FOOD, "fish"},
00266 {M_TORP, "torp"},
00267 {M_DCH, "dchrg"},
00268 {M_FLY, "plane"},
00269 {M_MSL, "miss"},
00270 {M_OIL, "oil"},
00271 {M_SONAR, "sonar"},
00272 {M_MINE, "mine"},
00273 {M_SWEEP, "sweep"},
00274 {M_SUB, "sub"},
00275 {M_LAND, "land"},
00276 {M_SUBT, "sub-torp"},
00277 {M_TRADE, "trade"},
00278 {M_SEMILAND, "semi-land"},
00279 {M_OILER, "oiler"},
00280 {M_SUPPLY, "supply"},
00281 {M_CANAL, "canal"},
00282 {M_ANTIMISSILE, "anti-missile"},
00283 {0, NULL}
00284 };
00285
00286 struct symbol treaty_flags[] = {
00287 {LNDATT, "no attacks on any land units"},
00288 {SEAATT, "no attacks on any ships"},
00289 {SEAFIR, "no shelling any ships"},
00290 {SUBFIR, "no depth-charging any subs"},
00291 {LANATT, "no sector attacks"},
00292 {LANFIR, "no shelling any land"},
00293 {NEWSHP, "no building ships"},
00294 {NEWNUK, "no new nuclear weapons"},
00295 {NEWPLN, "no building planes"},
00296 {NEWLND, "no building land units"},
00297 {TRTENL, "no enlistment"},
00298 {0, NULL}
00299 };