/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2008, 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,
* 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 <http://www.gnu.org/licenses/>.
*
* ---
*
* ---
*
* symbol.c: Empire symbol tables
- *
+ *
* Known contributors to this file:
- * Markus Armbruster, 2006-2008
+ * Markus Armbruster, 2006-2020
*/
#include <config.h>
#include "land.h"
+#include "loan.h"
#include "misc.h"
#include "mission.h"
#include "nat.h"
#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}
};
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}
};
};
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"},
struct symbol nation_status[] = {
{STAT_UNUSED, "unused"},
- {STAT_NEW, "new"},
+ {STAT_NEW, "new"},
{STAT_VIS, "visitor"},
{STAT_SANCT, "sanctuary"},
{STAT_ACTIVE, "active"},
{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"},
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"},
{0, NULL}
};
+struct symbol sect_chr_flags[] = {
+ {D_DEITY, "deity"},
+ {0, NULL}
+};
+
struct symbol sector_navigation[] = {
{NAV_NONE, "land"},
{NAVOK, "sea"},
{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}
-};