]> git.pond.sub.org Git - empserver/blob - include/optlist.h
(ORBIT, opt_ORBIT, Options, launch_sat, pdump, plan, prod_plane):
[empserver] / include / optlist.h
1 /*
2  *  Empire - A multi-player, client/server Internet based war game.
3  *  Copyright (C) 1986-2004, Dave Pare, Jeff Bailey, Thomas Ruschak,
4  *                           Ken Stevens, Steve McClure
5  *
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.
10  *
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.
15  *
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
19  *
20  *  ---
21  *
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.
25  *
26  *  ---
27  *
28  *  optlist.h: Definitions of option listings
29  * 
30  *  Known contributors to this file:
31  *     Ken Stevens, 1995
32  *     Steve McClure, 1998
33  */
34
35 #ifndef _OPTLIST_H_
36 #define _OPTLIST_H_
37
38 struct option_list {
39     char *opt_key;
40     int *opt_valuep;
41 };
42
43 extern struct option_list Options[];
44
45 /* Options, can be switched in econfig */
46 extern int opt_ALL_BLEED;
47 extern int opt_BIG_CITY;
48 extern int opt_BLITZ;
49 extern int opt_BRIDGETOWERS;
50 extern int opt_DEFENSE_INFRA;
51 extern int opt_DEMANDUPDATE;
52 extern int opt_DRNUKE;
53 extern int opt_EASY_BRIDGES;
54 extern int opt_FALLOUT;
55 extern int opt_FUEL;
56 extern int opt_GODNEWS;
57 extern int opt_GO_RENEW;
58 extern int opt_GUINEA_PIGS;
59 extern int opt_HIDDEN;
60 extern int opt_INTERDICT_ATT;
61 extern int opt_LANDSPIES;
62 extern int opt_LOANS;
63 extern int opt_LOSE_CONTACT;
64 extern int opt_MARKET;
65 extern int opt_MOB_ACCESS;
66 extern int opt_NEUTRON;
67 extern int opt_NOFOOD;
68 extern int opt_NOMOBCOST;
69 extern int opt_NONUKES;
70 extern int opt_NO_FORT_FIRE;
71 extern int opt_NO_HCMS;
72 extern int opt_NO_LCMS;
73 extern int opt_NO_OIL;
74 extern int opt_NO_PLAGUE;
75 extern int opt_NUKEFAILDETONATE;
76 extern int opt_PINPOINTMISSILE;
77 extern int opt_RES_POP;
78 extern int opt_ROLLOVER_AVAIL;
79 extern int opt_SAIL;
80 extern int opt_SHIPNAMES;
81 extern int opt_SHOWPLANE;
82 extern int opt_SLOW_WAR;
83 extern int opt_SNEAK_ATTACK;
84 extern int opt_SUPER_BARS;
85 extern int opt_TECH_POP;
86 extern int opt_TRADESHIPS;
87 extern int opt_TREATIES;
88 extern int opt_UPDATESCHED;
89
90 /* Game parameters, can be set in econfig */
91 #define EMP_CONFIG_H_OUTPUT
92 #include "econfig-spec.h"
93 #undef  EMP_CONFIG_H_OUTPUT
94
95 /* Game parameters that cannot be set in econfig (yet) */
96 extern int melt_item_denom[];
97 #ifdef START_UNITS
98 int start_unit_type[];
99 #endif
100
101 /* Variables that get values derived from econfig */
102 extern char *motdfil;
103 extern char *downfil;
104 extern char *disablefil;
105 extern char *banfil;
106 extern char *authfil;
107 extern char *annfil;
108 extern char *timestampfil;
109 extern char *teldir;
110 extern char *telfil;
111
112 enum {
113     KM_ALLOC = 0x01,            /* memory allocated */
114     KM_INTERNAL = 0x02          /* not to be disclosed to players */
115 };
116
117 struct keymatch {
118     char *km_key;               /* the key */
119     nsc_type km_type;           /* type of associated data */
120     void *km_data;              /* pointer to associated data */
121     int km_flags;               /* useful flags */
122     char *km_comment;           /* Comment (hopefully useful) */
123 };
124
125 extern struct keymatch configkeys[];
126
127 #endif /* _OPTLIST_H_ */