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
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 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.
28 * wantupd.h: Header used to check to see if an update is wanted
31 * Known contributors to this file:
36 * In the "hours" file,
39 * 0 - normal policy, update each time.
40 * 1 - update at times specified by keyword "update_times".
42 * 3 - no regular updates. (Only demand ones.)
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.
50 * The number of minutes that the update check is allowed to slip
51 * to match one of the update times shown.
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.
60 * update_abswantmin: N
61 * N - absolute minimum number of requests for an update.
62 * Prevents quick breaks and updates.
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
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.
76 * update_demandmaxperday: N
77 * Not implemented yet.
88 #define UDP_DEFAULT UDP_NORMAL
90 #define UDDEM_TMCHECK 0
91 #define UDDEM_COMSET 1
92 #define UDDEM_DISABLE 2
94 #define UDDEM_DEFAULT UDDEM_TMCHECK