2 * Empire - A multi-player, client/server Internet based war game.
3 * Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
4 * Ken Stevens, Steve McClure
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
23 * related information and legal notices. It is expected that any future
24 * projects/authors will amend these files as needed.
28 * optlist.h: Definitions of option listings
30 * Known contributors to this file:
38 #include "prototype.h"
45 extern struct option_list Options[];
47 extern void set_option _PROTO((const char *key));
48 extern void delete_option _PROTO((const char *key));
53 extern int opt_NO_FORT_FIRE;
54 extern int opt_TREATIES;
55 extern int opt_BRIDGETOWERS;
56 extern int opt_GODNEWS;
57 extern int opt_GO_RENEW;
58 extern int opt_DEFENSE_INFRA;
59 extern int opt_SHIP_DECAY;
60 extern int opt_MOB_ACCESS;
61 extern int opt_MARKET;
63 extern int opt_LANDSPIES;
64 extern int opt_PLANENAMES;
65 extern int opt_NO_LCMS;
66 extern int opt_NO_HCMS;
67 extern int opt_NO_OIL;
68 extern int opt_NOFOOD;
69 extern int opt_SNEAK_ATTACK;
71 extern int opt_HIDDEN;
72 extern int opt_LOSE_CONTACT;
73 extern int opt_NONUKES;
75 extern int opt_TRADESHIPS;
76 extern int opt_NEWPOWER;
77 extern int opt_NOMOBCOST;
78 extern int opt_SUPER_BARS;
79 extern int opt_EASY_BRIDGES;
80 extern int opt_ALL_BLEED;
81 extern int opt_DRNUKE;
82 extern int opt_SLOW_WAR;
83 extern int opt_NO_PLAGUE;
84 extern int opt_NEW_STARVE;
85 extern int opt_NEW_WORK;
86 extern int opt_RES_POP;
87 extern int opt_GRAB_THINGS;
88 extern int opt_SHOWPLANE;
90 extern int opt_PINPOINTMISSILE;
91 extern int opt_FALLOUT;
93 extern int opt_NUKEFAILDETONATE;
94 extern int opt_MISSINGMISSILES;
95 extern int opt_SHIPNAMES; /* not used currently */
96 extern int opt_NEUTRON;
97 extern int opt_UPDATESCHED;
98 extern int opt_DEMANDUPDATE;
99 extern int opt_BIG_CITY;
100 extern int opt_INTERDICT_ATT;
101 extern int opt_TECH_POP;
103 struct keymatch; /* forward decl */
105 /* function prototype for variable setting routines */
106 typedef void KmFunc _PROTO((struct keymatch * kp, s_char **av));
108 /* current known routines */
109 #if defined(__cplusplus) || (defined(__STDC__) &&__STDC__)
110 KmFunc optstrset, intset, floatset, doubleset, longset,
111 optionset, optiondel, worldxset;
113 void optstrset(), intset(), floatset(), doubleset(), longset(),
114 optionset(), optiondel(), worldxset();
118 s_char *km_key; /* the key */
119 KmFunc *km_func; /* the function to call if matches */
120 caddr_t km_data; /* associated data */
121 int km_flags; /* useful flags */
122 #define KM_ALLOC 0x01 /* memory allocated */
123 s_char *km_comment; /* Comment (hopefully useful) */
126 extern struct keymatch configkeys[];
128 #endif /* _OPTLIST_H_ */