X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=src%2Flib%2Fglobal%2Fsymbol.c;h=9101fa15ac36909997d68cd31d20045068d0f9ee;hp=9cb421240205e61872c8f1b0f7daa981e4da0da6;hb=87952c7f7c263dd2f4155982a3079dd5c1848663;hpb=e42053d928a9757f2fc2b9fa58e08be29f963e28 diff --git a/src/lib/global/symbol.c b/src/lib/global/symbol.c index 9cb421240..9101fa15a 100644 --- a/src/lib/global/symbol.c +++ b/src/lib/global/symbol.c @@ -1,11 +1,11 @@ /* * Empire - A multi-player, client/server Internet based war game. - * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak, - * Ken Stevens, Steve McClure + * Copyright (C) 1986-2020, Dave Pare, Jeff Bailey, Thomas Ruschak, + * Ken Stevens, Steve McClure, Markus Armbruster * - * This program is free software; you can redistribute it and/or modify + * Empire is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * along with this program. If not, see . * * --- * @@ -26,14 +25,15 @@ * --- * * symbol.c: Empire symbol tables - * + * * Known contributors to this file: - * Markus Armbruster, 2006 + * Markus Armbruster, 2006-2020 */ #include #include "land.h" +#include "loan.h" #include "misc.h" #include "mission.h" #include "nat.h" @@ -45,12 +45,11 @@ #include "retreat.h" #include "sect.h" #include "ship.h" -#include "treaty.h" struct symbol agreement_statuses[] = { - {AGREE_FREE, "free"}, - {AGREE_PROPOSED, "proposed"}, - {AGREE_SIGNED, "signed"}, + {LS_FREE, "free"}, + {LS_PROPOSED, "proposed"}, + {LS_SIGNED, "signed"}, {0, NULL} }; @@ -81,27 +80,15 @@ struct symbol level[] = { struct symbol meta_flags[] = { {NSC_DEITY, "deity"}, - {NSC_EXTRA, "extra"}, - {NSC_CONST, "const"}, {NSC_BITS, "bits"}, + {NSC_HIDDEN, "hidden"}, {0, NULL} }; -struct symbol meta_type[] = { +struct symbol meta_type[] = { {NSC_LONG, "d"}, {NSC_DOUBLE, "g"}, {NSC_STRING, "s"}, - {NSC_CHAR, "d"}, - {NSC_UCHAR, "d"}, - {NSC_SHORT, "d"}, - {NSC_USHORT, "d"}, - {NSC_INT, "d"}, - {NSC_XCOORD, "d"}, - {NSC_YCOORD, "d"}, - {NSC_HIDDEN, "d"}, - {NSC_TIME, "d"}, - {NSC_FLOAT, "g"}, - {NSC_STRINGY,"c"}, {NSC_NOTYPE, NULL} }; @@ -129,18 +116,15 @@ struct symbol nation_flags[] = { }; struct symbol nation_rejects[] = { - {REJ_TELE, "telegrams"}, - {REJ_TREA, "treaties"}, - {REJ_ANNO, "announcements"}, - {REJ_LOAN, "loans"}, + {bit(REJ_TELE), "telegrams"}, + {bit(REJ_ANNO), "announcements"}, + {bit(REJ_LOAN), "loans"}, {0, NULL} }; struct symbol nation_relations[] = { {-1, "unknown"}, {AT_WAR, "at-war"}, - {SITZKRIEG, "sitzkrieg"}, - {MOBILIZATION, "mobilization"}, {HOSTILE, "hostile"}, {NEUTRAL, "neutral"}, {FRIENDLY, "friendly"}, @@ -150,7 +134,7 @@ struct symbol nation_relations[] = { struct symbol nation_status[] = { {STAT_UNUSED, "unused"}, - {STAT_NEW, "new"}, + {STAT_NEW, "new"}, {STAT_VIS, "visitor"}, {STAT_SANCT, "sanctuary"}, {STAT_ACTIVE, "active"}, @@ -208,9 +192,7 @@ struct symbol plane_chr_flags[] = { {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"}, @@ -225,7 +207,7 @@ struct symbol plane_chr_flags[] = { struct symbol plane_flags[] = { {PLN_LAUNCHED, "launched"}, {PLN_SYNCHRONOUS, "synchronous"}, - {PLN_AIRBURST, "airbust"}, + {PLN_AIRBURST, "airburst"}, {0, NULL} }; @@ -243,7 +225,7 @@ struct symbol resources[] = { struct symbol retreat_flags[] = { {RET_GROUP, "group"}, {RET_INJURED, "injured"}, - {RET_TORPED, "torped"}, + {RET_TORPED, "torpedoed"}, {RET_SONARED, "sonared"}, {RET_HELPLESS, "helpless"}, {RET_BOMBED, "bombed"}, @@ -252,6 +234,11 @@ struct symbol retreat_flags[] = { {0, NULL} }; +struct symbol sect_chr_flags[] = { + {D_DEITY, "deity"}, + {0, NULL} +}; + struct symbol sector_navigation[] = { {NAV_NONE, "land"}, {NAVOK, "sea"}, @@ -276,24 +263,8 @@ struct symbol ship_chr_flags[] = { {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 treaty_flags[] = { - {LNDATT, "no attacks on any land units"}, - {SEAATT, "no attacks on any ships"}, - {SEAFIR, "no shelling any ships"}, - {SUBFIR, "no depth-charging any subs"}, - {LANATT, "no sector attacks"}, - {LANFIR, "no shelling any land"}, - {NEWSHP, "no building ships"}, - {NEWNUK, "no new nuclear weapons"}, - {NEWPLN, "no building planes"}, - {NEWLND, "no building land units"}, - {TRTENL, "no enlistment"}, - {0, NULL} -};