Fail --enable-client=gtk3.22 at configure time when gtk3 not present
[freeciv.git] / server / ruleset.h
blob7ae5352d4964f479cb4eb19739ade04e04e49b82
1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
13 #ifndef FC__RULESET_H
14 #define FC__RULESET_H
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
20 #define RULESET_CAPABILITIES "+Freeciv-2.6-ruleset"
22 * Ruleset capabilities acceptable to this program:
24 * +Freeciv-2.3-ruleset
25 * - basic ruleset format for Freeciv versions 2.3.x; required
27 * +Freeciv-tilespec-Devel-YYYY.MMM.DD
28 * - ruleset of the development version at the given data
31 struct conn_list;
33 /* functions */
34 bool load_rulesets(const char *restore, bool act, bool buffer_script);
35 bool reload_rulesets_settings(void);
36 void send_rulesets(struct conn_list *dest);
38 void rulesets_deinit(void);
40 void ruleset_error_real(const char *file, const char *function,
41 int line, enum log_level level,
42 const char *format, ...)
43 fc__attribute((__format__ (__printf__, 5, 6)));
45 #define ruleset_error(level, format, ...) \
46 if (log_do_output_for_level(level)) { \
47 ruleset_error_real(__FILE__, __FUNCTION__, __FC_LINE__, \
48 level, format, ## __VA_ARGS__); \
51 char *get_script_buffer(void);
53 /* Default ruleset values that are not settings (in game.h) */
55 #define GAME_DEFAULT_ADDTOSIZE 9
56 #define GAME_DEFAULT_CHANGABLE_TAX TRUE
57 #define GAME_DEFAULT_VISION_REVEAL_TILES FALSE
58 #define GAME_DEFAULT_NATIONALITY FALSE
59 #define GAME_DEFAULT_CONVERT_SPEED 50
60 #define GAME_DEFAULT_DISASTER_FREQ 10
61 #define GAME_DEFAULT_ACH_UNIQUE TRUE
62 #define GAME_DEFAULT_ACH_VALUE 1
63 #define RS_DEFAULT_TECH_STEAL_HOLES TRUE
64 #define RS_DEFAULT_TECH_TRADE_HOLES TRUE
65 #define RS_DEFAULT_TECH_TRADE_LOSS_HOLES TRUE
66 #define RS_DEFAULT_TECH_PARASITE_HOLES TRUE
67 #define RS_DEFAULT_TECH_LOSS_HOLES TRUE
68 #define RS_DEFAULT_PYTHAGOREAN_DIAGONAL FALSE
70 #define RS_DEFAULT_GOLD_UPKEEP_STYLE "City"
71 #define RS_DEFAULT_TECH_COST_STYLE "Civ I|II"
72 #define RS_DEFAULT_TECH_LEAKAGE "None"
73 #define RS_DEFAULT_TECH_UPKEEP_STYLE "None"
75 #define RS_DEFAULT_CULTURE_VIC_POINTS 1000
76 #define RS_DEFAULT_CULTURE_VIC_LEAD 300
77 #define RS_DEFAULT_CULTURE_MIGRATION_PML 50
79 #ifdef __cplusplus
81 #endif /* __cplusplus */
83 #endif /* FC__RULESET_H */