]> git.pond.sub.org Git - empserver/blob - include/wantupd.h
COPYING duplicates information from README. Remove. Move GPL from
[empserver] / include / wantupd.h
1 /*
2  *  Empire - A multi-player, client/server Internet based war game.
3  *  Copyright (C) 1986-2006, 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 files README, COPYING and CREDITS in the root of the source
23  *  tree for related information and legal notices.  It is expected
24  *  that future projects/authors will amend these files as needed.
25  *
26  *  ---
27  *
28  *  wantupd.h: Header used to check to see if an update is wanted
29  *             and/or allowed.
30  * 
31  *  Known contributors to this file:
32  *     Doug Hay, 1991
33  */
34
35 /*
36  * In the "hours" file,
37  *
38  * update_policy: N
39  *      0 - normal policy, update each time.
40  *      1 - update at times specified by keyword "update_times".
41  *      2 - blitz updates
42  *      3 - no regular updates.  (Only demand ones.)
43  *      default: 0.
44  *
45  * update_times:  1:00 3:00 8:00
46  *      Sets the times when updates occur under policy #1.
47  *      NOTE that the schedual times should coincide.
48  *
49  * update_timeslop: N
50  *      The number of minutes that the update check is allowed to slip
51  *      to match one of the update times shown.
52  *      default 5.
53  *
54  * update_wantmin: N
55  *      0 - disabled, no requests.
56  *      >0 - minimum number of requests before an update.
57  *            Setting it to more than num of coun will max at num of coun.
58  *      defaults to MAXNOC.
59  *
60  * update_abswantmin: N
61  *      N - absolute minimum number of requests for an update.
62  *          Prevents quick breaks and updates.
63  *      defaults to 1.
64  *
65  * update_demandtimes:  1:00-3:00  5:00-6:00
66  *      Time intervals when update requests are allowed.
67  *      NOTE that time ranges CANNOT cross midnight.
68  *      They must go like:  20:00-24:00 0:00-3:00
69  *
70  * update_demandpolicy: N
71  *      0 - demand updates occur only emp_tm checks.
72  *      1 - demand updates occur right after setting command.
73  *      2 - demand updates disabled.
74  *      defaults to 0.
75  *
76  * update_demandmaxperday: N
77  *      Not implemented yet.
78  */
79
80 #ifndef WANTUPD_H
81 #define WANTUPD_H
82
83 #define  UDP_NORMAL     0
84 #define  UDP_TIMES      1
85 #define  UDP_NOREG      3
86 #define  UDP_BLITZ      2
87 #define  UDP_MAX        3
88 #define  UDP_DEFAULT    UDP_NORMAL
89
90 #define  UDDEM_TMCHECK  0
91 #define  UDDEM_COMSET   1
92 #define  UDDEM_DISABLE  2
93 #define  UDDEM_MAX      2
94 #define  UDDEM_DEFAULT  UDDEM_TMCHECK
95
96 #endif