Collect all symbol tables in new symbol.c. No functional changes.

This commit is contained in:
Markus Armbruster 2006-02-18 14:55:29 +00:00
parent bd65a84eb5
commit a0bd72feed
4 changed files with 286 additions and 284 deletions

View file

@ -59,8 +59,6 @@
#include "lost.h"
#include "product.h"
#include "file.h"
#include "mission.h"
#include "plague.h"
#define fldoff(str, fld) offsetof(struct str, fld)
@ -590,75 +588,6 @@ struct castr symbol_ca[] = {
{NSC_STRING, NSC_CONST, 0, offsetof(struct symbol, name), "name", EF_BAD},
{NSC_NOTYPE, 0, 0, 0, NULL, EF_BAD}
};
struct symbol ship_chr_flags[] = {
{M_FOOD, "fish"},
{M_TORP, "torp"},
{M_DCH, "dchrg"},
{M_FLY, "plane"},
{M_MSL, "miss"},
{M_OIL, "oil"},
{M_SONAR, "sonar"},
{M_MINE, "mine"},
{M_SWEEP, "sweep"},
{M_SUB, "sub"},
{M_LAND, "land"},
{M_SUBT, "sub-torp"},
{M_TRADE, "trade"},
{M_SEMILAND, "semi-land"},
{M_OILER, "oiler"},
{M_SUPPLY, "supply"},
{M_CANAL, "canal"},
{M_ANTIMISSILE, "anti-missile"},
{0, NULL}
};
struct symbol land_chr_flags[] = {
{L_ENGINEER, "engineer"},
{L_SUPPLY, "supply"},
{L_SECURITY, "security"},
{L_LIGHT, "light"},
{L_MARINE, "marine"},
{L_RECON, "recon"},
{L_RADAR, "radar"},
{L_ASSAULT, "assault"},
{L_FLAK, "flak"},
{L_SPY, "spy"},
{L_TRAIN, "train"},
{L_HEAVY, "heavy"},
{0, NULL}
};
struct symbol plane_chr_flags[] = {
{P_T, "tactical"},
{P_B, "bomber"},
{P_F, "intercept"},
{P_C, "cargo"},
{P_V, "VTOL"},
{P_M, "missile"},
{P_L, "light"},
{P_S, "spy"},
{P_I, "image"},
{P_O, "satellite"},
{P_X, "stealth"},
{P_N, "SDI"},
{P_H, "half-stealth"},
{P_E, "x-light"},
{P_K, "helo"},
{P_A, "ASW"},
{P_P, "para"},
{P_ESC, "escort"},
{P_MINE, "mine"},
{P_SWEEP, "sweep"},
{P_MAR, "marine"},
{0, NULL}
};
struct symbol nuke_chr_flags[] = {
{N_NEUT, "neutron"},
{0, NULL}
};
struct castr mdchr_ca[] = {
/* no need for uid */
/* name must come first, clients may rely on it */
@ -674,146 +603,3 @@ struct castr mdchr_ca[] = {
EF_BAD},
{NSC_NOTYPE, 0, 0, 0, NULL, EF_BAD}
};
struct symbol meta_flags[] = {
{NSC_DEITY, "deity"},
{NSC_EXTRA, "extra"},
{NSC_CONST, "const"},
{NSC_BITS, "bits"},
{0, NULL}
};
struct symbol meta_type[] = {
{NSC_LONG, "d"},
{NSC_DOUBLE, "g"},
{NSC_STRING, "s"},
{NSC_TYPEID, "d"},
{NSC_CHAR, "d"},
{NSC_UCHAR, "d"},
{NSC_SHORT, "d"},
{NSC_USHORT, "d"},
{NSC_INT, "d"},
{NSC_XCOORD, "d"},
{NSC_YCOORD, "d"},
{NSC_TIME, "d"},
{NSC_FLOAT, "g"},
{NSC_STRINGY,"c"},
{NSC_NOTYPE, NULL}
};
struct symbol missions[] = {
{MI_NONE, "none"},
{MI_INTERDICT, "interdiction"},
{MI_SUPPORT, "support"},
{MI_RESERVE, "reserve"},
{MI_ESCORT, "escort"},
{MI_AIR_DEFENSE, "air defense"},
{MI_DSUPPORT, "defensive support"},
{MI_OSUPPORT, "offensive support"},
{0, NULL}
};
struct symbol plane_flags[] = {
{PLN_LAUNCHED, "launched"},
{PLN_SYNCHRONOUS, "synchronous"},
{PLN_AIRBURST, "airbust"},
{0, NULL}
};
struct symbol retreat_flags[] = {
{RET_GROUP, "group"},
{RET_INJURED, "injured"},
{RET_TORPED, "torped"},
{RET_SONARED, "sonared"},
{RET_HELPLESS, "helpless"},
{RET_BOMBED, "bombed"},
{RET_DCHRGED, "depth-charged"},
{RET_BOARDED, "boarded"},
{0, NULL}
};
struct symbol nation_status[] = {
{STAT_UNUSED, "unused"},
{STAT_NEW, "new"},
{STAT_VIS, "visitor"},
{STAT_SANCT, "sanctuary"},
{STAT_ACTIVE, "active"},
{STAT_GOD, "deity"},
{0, NULL}
};
struct symbol nation_flags[] = {
{NF_INFORM, "inform"},
{NF_FLASH, "flash"},
{NF_BEEP, "beep"},
{NF_COASTWATCH, "coastwatch"},
{NF_SONAR, "sonar"},
{NF_TECHLISTS, "techlists"},
{NF_SACKED, "sacked"},
{0, NULL}
};
struct symbol nation_relations[] = {
{AT_WAR, "at-war"},
{SITZKRIEG, "sitzkrieg"},
{MOBILIZATION, "mobilization"},
{HOSTILE, "hostile"},
{NEUTRAL, "neutral"},
{FRIENDLY, "friendly"},
{ALLIED, "allied"},
{0, NULL}
};
struct symbol level[] = {
{-1, "none"},
{NAT_TLEV, "technology"},
{NAT_RLEV, "research"},
{NAT_ELEV, "education"},
{NAT_HLEV, "happiness"},
{0, NULL}
};
struct symbol agreement_statuses[] = {
{AGREE_FREE, "free"},
{AGREE_PROPOSED, "proposed"},
{AGREE_SIGNED, "signed"},
{0, NULL}
};
struct symbol plague_stages[] = {
{PLG_HEALTHY, "healthy"},
{PLG_DYING, "dying"},
{PLG_INFECT, "infect"},
{PLG_INCUBATE, "incubate"},
{PLG_EXPOSED, "exposed"},
{0, NULL}
};
struct symbol packing[] = {
{IPKG, "inefficient"},
{NPKG, "normal"},
{WPKG, "warehouse"},
{UPKG, "urban"},
{BPKG, "bank"},
{0, NULL}
};
struct symbol resources[] = {
/* names should match resource selector names in sect_ca[] */
{0, "none"},
{offsetof(struct sctstr, sct_min), "min"},
{offsetof(struct sctstr, sct_gmin), "gold"},
{offsetof(struct sctstr, sct_fertil), "fert"},
{offsetof(struct sctstr, sct_oil), "ocontent"},
{offsetof(struct sctstr, sct_uran), "uran"},
{0, NULL}
};
struct symbol sector_navigation[] = {
{NAV_NONE, "land"},
{NAVOK, "sea"},
{NAV_02, "harbor"},
{NAV_CANAL, "canal"},
{NAV_60, "bridge"},
{0, NULL}
};