include/optlist.h

Go to the documentation of this file.
00001 /*
00002  *  Empire - A multi-player, client/server Internet based war game.
00003  *  Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
00004  *                           Ken Stevens, Steve McClure
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  *  ---
00021  *
00022  *  See files README, COPYING and CREDITS in the root of the source
00023  *  tree for related information and legal notices.  It is expected
00024  *  that future projects/authors will amend these files as needed.
00025  *
00026  *  ---
00027  *
00028  *  optlist.h: Definitions of option listings
00029  * 
00030  *  Known contributors to this file:
00031  *     Ken Stevens, 1995
00032  *     Steve McClure, 1998
00033  */
00034 
00035 #ifndef OPTLIST_H
00036 #define OPTLIST_H
00037 
00038 #include "nsc.h"
00039 
00040 extern char dflt_econfig[];
00041 
00042 /* Game parameters, can be set in econfig */
00043 #define EMP_CONFIG_H_OUTPUT
00044 #include "econfig-spec.h"
00045 #undef  EMP_CONFIG_H_OUTPUT
00046 
00047 extern char *configdir;
00048 extern char *schedulefil;
00049 
00050 extern char motdfil[];
00051 extern char downfil[];
00052 extern char annfil[];
00053 extern char teldir[];
00054 extern char telfil[];
00055 
00056 enum {
00057     KM_ALLOC = 1,               /* memory allocated */
00058     KM_INTERNAL = 2,            /* not to be disclosed to players */
00059     KM_OPTION = 4               /* historically an option */
00060 };
00061 
00062 enum {
00063     UPD_DEMAND_NONE,            /* no demand updates */
00064     UPD_DEMAND_SCHED,           /* scheduled updates are demand updates */
00065     UPD_DEMAND_ASYNC,           /* zdone triggers unscheduled update */
00066 };
00067 
00068 struct keymatch {
00069     char *km_key;               /* the key */
00070     nsc_type km_type;           /* type of associated data */
00071     void *km_data;              /* pointer to associated data */
00072     int km_flags;               /* useful flags */
00073     char *km_comment;           /* Comment (hopefully useful) */
00074 };
00075 
00076 extern struct keymatch configkeys[];
00077 
00078 #endif

Generated on Fri Mar 28 11:01:11 2008 for empserver by  doxygen 1.5.2