]> git.pond.sub.org Git - empserver/blobdiff - include/econfig-spec.h
Update copyright notice
[empserver] / include / econfig-spec.h
index b9e645ee23c0077ceb7fd3e8b19a1e3edce37807..8f7de98828d29663e2cfc565df5f3a781f538593 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -29,7 +29,7 @@
  * 
  *  Known contributors to this file:
  *     Marc Olzheim, 2004
- *     Markus Armbruster, 2004-2006
+ *     Markus Armbruster, 2004-2007
  */
 
 /*
 
 #if    defined(EMP_CONFIG_C_OUTPUT)
 
-#define        EMPCFONLYC(fvname, vname, vtype, ctype, num, descr)     \
-       { (fvname), (ctype), &(vname), (num), (descr) },
-#define        EMPCFBOTH(fvname, vname, vtype, ctype, num, descr)      \
-       { (fvname), (ctype), &(vname), (num), (descr) },
+#define        EMPCFONLYC(fvname, vname, vtype, ctype, flags, descr)   \
+       { (fvname), (ctype), &(vname), (flags), (descr) },
+#define        EMPCFBOTH(fvname, vname, vtype, ctype, flags, descr)    \
+       { (fvname), (ctype), &(vname), (flags), (descr) },
 
 #elif  defined(EMP_CONFIG_H_OUTPUT)
 
-#define        EMPCFONLYC(fvname, vname, vtype, ctype, num, descr)
-#define        EMPCFBOTH(fvname, vname, vtype, ctype, num, descr)      \
+#define        EMPCFONLYC(fvname, vname, vtype, ctype, flags, descr)
+#define        EMPCFBOTH(fvname, vname, vtype, ctype, flags, descr)    \
        extern vtype vname;
 
 #endif /* EMP_CONFIG_C_OUTPUT || EMP_CONFIG_H_OUTPUT */
@@ -75,6 +75,8 @@ EMPCFBOTH("custom_tables", custom_tables, char *, NSC_STRING, KM_INTERNAL,
     "Custom configuration table files, separated by space")
 EMPCFBOTH("data", gamedir, char *, NSC_STRING, KM_INTERNAL,
     "Directory where this game's data is stored")
+EMPCF_COMMENT("# Note: Use an absolute name here, the interpretation of a relative\n"
+             "# name may change.")
 EMPCFBOTH("info", infodir, char *, NSC_STRING, KM_INTERNAL,
     "Directory where info pages are stored, can be shared among games")
 EMPCF_COMMENT("# Note: Use an absolute name here, the interpretation of a relative\n"
@@ -101,46 +103,26 @@ EMPCFBOTH("WORLD_X", WORLD_X, int, NSC_INT, 0,
 EMPCFBOTH("WORLD_Y", WORLD_Y, int, NSC_INT, 0,
     "World size Y dimension")
 
-EMPCF_COMMENT("\n\n### Update policy")
-EMPCFBOTH("update_policy", update_policy, int, NSC_INT, 0,
-    "Update policy")
-EMPCF_COMMENT("# 0 - Schedule updates according to etu_per_update, s_p_etu, adj_update\n"
-             "# 1 - Update at times specified by key \"update_times\"\n"
-             "# 2 - Blitz update every blitz_time minute\n"
-             "# 3 - No regular updates, only demand ones")
+EMPCF_COMMENT("\n\n### Update policy\n\n"
+    "# Note: the update schedule is defined in the file schedule in the\n"
+    "# same directory as this file.")
 EMPCFBOTH("etu_per_update", etu_per_update, int, NSC_INT, 0,
     "Number of ETUs per update")
-EMPCFBOTH("s_p_etu", s_p_etu, int, NSC_INT, 0,
-    "Seconds per ETU")
-EMPCF_COMMENT("# updates under policy 0 occur every s_p_etu * etu_per_update seconds")
-EMPCFBOTH("adj_update", adj_update, int, NSC_INT, KM_INTERNAL,
-    "Move the update forward or backward (in seconds)")
 EMPCFBOTH("update_window", update_window, int, NSC_INT, 0,
-    "Window the update will occur in (in seconds) before and after the update time")
-EMPCFBOTH("update_times", update_times, char *, NSC_STRING, 0,
-    "Times of day when updates may occur under policy 1, separated by space.")
-EMPCF_COMMENT("# Give time of day as HOUR:MINUTE, e.g. 20:00\n"
-    "# Times must coincide with updates under policy 0.")
-EMPCFBOTH("hourslop", hourslop, int, NSC_INT, KM_INTERNAL,
-    "Number of minutes update check can slip to match update_times")
-EMPCFBOTH("blitz_time", blitz_time, int, NSC_INT, 0,
-    "Number of minutes between updates under policy 2.")
+    "Time window the update will occur in after the update time, in seconds")
 EMPCFBOTH("pre_update_hook", pre_update_hook, char *, NSC_STRING, KM_INTERNAL,
     "Shell command run right before the update.")
-
-EMPCF_COMMENT("\n\n### Demand update policy")
-EMPCFBOTH("update_demandpolicy", update_demandpolicy, int, NSC_INT, 0,
+EMPCFBOTH("update_demand", update_demand, int, NSC_INT, 0,
     "Demand update policy")
-EMPCF_COMMENT("# 0 - Votes tallied at update times under policy 0\n"
-             "# 1 - Votes tallies right after a vote\n"
-             "# 2 - Demand updates disabled")
+EMPCF_COMMENT("# 0 - No demand updates\n"
+    "# 1 - Scheduled updates are demand updates\n"
+    "# 2 - Demand updates run right after the deciding vote is cast,\n"
+    "#     in addition to (non-demand) scheduled updates\n")
 EMPCFBOTH("update_wantmin", update_wantmin, int, NSC_INT, 0,
     "Number of votes required for a demand update")
-EMPCFBOTH("update_missed", update_missed, int, NSC_INT, 0,
-    "A country vetoes further demand updates after missing that many votes")
 EMPCFBOTH("update_demandtimes", update_demandtimes, char *, NSC_STRING, 0,
-    "Time of day ranges when demand updates can occur, separated by space.")
-EMPCF_COMMENT("# Give range HOUR:MINUTE-HOUR:MINUTE, e.g. 20:00-24:00\n"
+    "Times when unscheduled demand updates can occur, separated by space.")
+EMPCF_COMMENT("# Give time ranges as HOUR:MINUTE-HOUR:MINUTE, e.g. 20:00-24:00\n"
              "# Ranges CANNOT cross midnight.")
 
 EMPCF_COMMENT("\n\n### Game hours restrictions")
@@ -149,7 +131,7 @@ EMPCFBOTH("game_days", game_days, char *, NSC_STRING, 0,
 EMPCF_COMMENT("# Give days as Su Mo Tu We Th Fr Sa.")
 EMPCFBOTH("game_hours", game_hours, char *, NSC_STRING, 0,
     "Time of day ranges when the game is open, separated by space.")
-EMPCF_COMMENT("# Give range HOUR:MINUTE-HOUR:MINUTE, e.g. 20:00-24:00\n"
+EMPCF_COMMENT("# Give time ranges as HOUR:MINUTE-HOUR:MINUTE, e.g. 20:00-24:00\n"
              "# Ranges CANNOT cross midnight.")
 
 EMPCF_COMMENT("\n\n### Options")