~ubuntu-branches/ubuntu/natty/freeciv/natty-proposed

« back to all changes in this revision

Viewing changes to common/game.h

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2010-02-23 22:09:02 UTC
  • mfrom: (7.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100223220902-s3spqi1x4e190y0t
Tags: 2.2.0-1
[ Karl Goetz ]
* Remove civserver files in /etc/ggzd/ (Closes: 523772, 517787)
* Adding ${misc:Depends} to all binary packages (lintian warnings)

[ Clint Adams ]
* New upstream version.
  - Drop data_dsc_use_bindir.diff (binary pathnames have changed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include "connection.h"         /* struct conn_list */
26
26
#include "fc_types.h"
27
 
#include "improvement.h"        /* Impr_Status */
28
27
#include "player.h"
29
28
#include "packets.h"
30
 
#include "specialist.h"
31
 
 
32
 
/* used in savegame values */
33
 
enum server_states { 
34
 
  S_S_INITIAL = 0, 
35
 
  S_S_GENERATING_WAITING = 1,
36
 
  S_S_RUNNING = 2,
37
 
  S_S_OVER = 3,
38
 
};
39
 
 
40
 
/* used in network values */
41
 
enum client_states { 
42
 
  C_S_INITIAL = 0,
43
 
  C_S_PREPARING = 1,
44
 
  C_S_STARTING_UNUSED = 2,
45
 
  C_S_RUNNING = 3,
46
 
  C_S_OVER = 4,
47
 
};
48
 
 
49
 
#define OVERFLIGHT_NOTHING  1
50
 
#define OVERFLIGHT_FRIGHTEN 2
 
29
 
 
30
enum debug_globals {
 
31
  DEBUG_FERRIES,
 
32
  DEBUG_LAST
 
33
};
 
34
 
 
35
/* NB: Must match phasemode setting
 
36
 * help text in server/settings.c */
 
37
enum phase_mode_types {
 
38
  PMT_CONCURRENT = 0,
 
39
  PMT_PLAYERS_ALTERNATE = 1,
 
40
  PMT_TEAMS_ALTERNATE = 2
 
41
};
51
42
 
52
43
#define CONTAMINATION_POLLUTION 1
53
44
#define CONTAMINATION_FALLOUT   2
58
49
 
59
50
struct civ_game {
60
51
  struct packet_game_info info;
61
 
  struct government *government_when_anarchy;
 
52
  struct government *government_during_revolution;
62
53
 
63
54
  struct packet_ruleset_control control;
64
 
  int version;
65
 
  char id[MAX_ID_LEN];          /* server only */
66
 
  int timeoutint;     /* increase timeout every N turns... */
67
 
  int timeoutinc;     /* ... by this amount ... */
68
 
  int timeoutincmult; /* ... and multiply timeoutinc by this amount ... */
69
 
  int timeoutintinc;  /* ... and increase timeoutint by this amount */
70
 
  int timeoutcounter; /* timeoutcounter - timeoutint = turns to next inc. */
71
 
  int timeoutaddenemymove; /* minimum timeout after an enemy move is seen */
72
 
  time_t last_ping;
73
 
  struct timer *phase_timer; /* Time since seconds_to_phase_done was set. */
 
55
  struct packet_scenario_info scenario;
74
56
 
75
 
  /* The .info.simultaneous_phases value indicates the phase mode currently in
76
 
   * use.  The "stored" value is a value the player can change; it won't
77
 
   * take effect until the next turn. */
78
 
  bool simultaneous_phases_stored;
79
 
  char *startmessage;
80
 
  struct player *player_ptr; /* Client-only; may be NULL */
81
57
  struct player players[MAX_NUM_PLAYERS + MAX_NUM_BARBARIANS];
 
58
  int nplayers;
82
59
  struct conn_list *all_connections;        /* including not yet established */
83
60
  struct conn_list *est_connections;        /* all established client conns */
84
 
  char save_name[MAX_LEN_NAME];
85
 
  bool scorelog;
86
 
  int scoreturn;                        /* next make_history_report() */
87
 
  int seed;
88
 
  int playable_nations;
89
 
  bool fogofwar_old;    /* as the fog_of_war bit get changed by setting
90
 
                           the server we need to remember the old setting */
91
 
  int ai_goal_government;       /* kludge */
92
 
 
93
 
  char rulesetdir[MAX_LEN_NAME];
94
 
 
95
 
  /* values from game.info.t */
96
 
  struct {
97
 
    /* Items given to all players at game start.  Server only. */
98
 
    int global_init_techs[MAX_NUM_TECH_LIST];
99
 
    int global_init_buildings[MAX_NUM_BUILDING_LIST];
100
 
  } rgame;
101
 
  
102
 
  char demography[MAX_LEN_DEMOGRAPHY];
103
 
  char allow_take[MAX_LEN_ALLOW_TAKE];
104
 
 
105
 
  /* used by the map editor to control game_save; could be used by the server too */
106
 
  struct {
107
 
    bool save_random;
108
 
    bool save_players;
109
 
    bool save_known; /* loading will just reveal the squares around cities and units */
110
 
    bool save_starts; /* start positions will be auto generated */
111
 
    bool save_private_map; /* FoW map; will be created if not saved */
112
 
  } save_options;
113
 
 
114
 
  int trireme_loss_chance[MAX_VET_LEVELS];
 
61
 
115
62
  int work_veteran_chance[MAX_VET_LEVELS];
116
63
  int veteran_chance[MAX_VET_LEVELS];
117
64
 
118
 
  struct {
119
 
    bool user_message_set;
120
 
    char user_message[256];
121
 
  } meta_info;
 
65
  union {
 
66
    struct {
 
67
      /* Nothing yet. */
 
68
    } client;
 
69
 
 
70
    struct {
 
71
      bool debug[DEBUG_LAST];
 
72
      int timeoutint;     /* increase timeout every N turns... */
 
73
      int timeoutinc;     /* ... by this amount ... */
 
74
      int timeoutincmult; /* ... and multiply timeoutinc by this amount ... */
 
75
      int timeoutintinc;  /* ... and increase timeoutint by this amount */
 
76
      int timeoutcounter; /* timeoutcounter - timeoutint = turns to next inc. */
 
77
      int timeoutaddenemymove; /* minimum timeout after an enemy move is seen */
 
78
      time_t last_ping;
 
79
      struct timer *phase_timer; /* Time since seconds_to_phase_done was set. */
 
80
      /* The .info.phase_mode value indicates the phase mode currently in
 
81
       * use.  The "stored" value is a value the player can change; it won't
 
82
       * take effect until the next turn. */
 
83
      int phase_mode_stored;
 
84
      char connectmsg[MAX_LEN_MSG];
 
85
      char save_name[MAX_LEN_NAME];
 
86
      bool scorelog;
 
87
      int scoreturn;    /* next make_history_report() */
 
88
      int seed;
 
89
      bool fogofwar_old; /* as the fog_of_war bit get changed by setting
 
90
                          * the server we need to remember the old setting */
 
91
      bool foggedborders;
 
92
      char rulesetdir[MAX_LEN_NAME];
 
93
      char demography[MAX_LEN_DEMOGRAPHY];
 
94
      char allow_take[MAX_LEN_ALLOW_TAKE];
 
95
 
 
96
      struct {
 
97
        int turns;
 
98
        int max_size;
 
99
        bool chat;
 
100
        bool info;
 
101
      } event_cache;
 
102
 
 
103
      /* values from game.info.t */
 
104
      struct {
 
105
        /* Items given to all players at game start.  Server only. */
 
106
        int global_init_techs[MAX_NUM_TECH_LIST];
 
107
        int global_init_buildings[MAX_NUM_BUILDING_LIST];
 
108
      } rgame;
 
109
 
 
110
      /* used by the map editor to control game_save. */
 
111
      struct {
 
112
        bool save_random;
 
113
  
 
114
        bool save_known; /* loading will just reveal the squares around
 
115
                          * cities and units */
 
116
        bool save_starts; /* start positions will be auto generated */
 
117
        bool save_private_map; /* FoW map; will be created if not saved */
 
118
      } save_options;
 
119
 
 
120
      struct {
 
121
        bool user_message_set;
 
122
        char user_message[256];
 
123
      } meta_info;
 
124
    } server;
 
125
  };
122
126
 
123
127
  struct {
124
128
    /* Function to be called in game_remove_unit when a unit is deleted. */
126
130
  } callbacks;
127
131
};
128
132
 
 
133
bool is_server(void);
 
134
void i_am_server(void);
 
135
void i_am_client(void);
 
136
 
129
137
void game_init(void);
130
138
void game_map_init(void);
131
139
void game_free(void);
132
 
void ruleset_data_free(void);
 
140
void game_reset(void);
 
141
 
 
142
void game_ruleset_init(void);
 
143
void game_ruleset_free(void);
133
144
 
134
145
int game_next_year(int);
135
146
void game_advance_year(void);
141
152
struct unit *game_find_unit_by_number(int id);
142
153
 
143
154
void game_remove_player(struct player *pplayer);
144
 
void game_renumber_players(int plrno);
145
155
 
146
156
void game_remove_unit(struct unit *punit);
147
157
void game_remove_city(struct city *pcity);
148
158
void initialize_globals(void);
149
159
 
150
 
struct player *get_player(int player_id);
151
 
bool is_valid_player_id(int player_id);
152
 
int get_num_human_and_ai_players(void);
153
160
bool is_player_phase(const struct player *pplayer, int phase);
154
161
 
155
162
const char *population_to_text(int thousand_citizen);
156
163
 
 
164
const char *gui_name(enum gui_type);
 
165
 
 
166
const char *textyear(int year);
 
167
 
157
168
extern struct civ_game game;
158
 
extern bool is_server;
159
169
 
160
170
bool setting_class_is_changeable(enum sset_class class);
161
171
 
165
175
 
166
176
#define GAME_DEFAULT_GOLD        50
167
177
#define GAME_MIN_GOLD            0
168
 
#define GAME_MAX_GOLD            5000
 
178
#define GAME_MAX_GOLD            50000
169
179
 
170
180
#define GAME_DEFAULT_START_UNITS  "ccwwx"
171
181
 
175
185
 
176
186
#define GAME_DEFAULT_TECHLEVEL   0
177
187
#define GAME_MIN_TECHLEVEL       0
178
 
#define GAME_MAX_TECHLEVEL       50
179
 
 
180
 
#define GAME_DEFAULT_UNHAPPYSIZE 4
181
 
#define GAME_MIN_UNHAPPYSIZE     1
182
 
#define GAME_MAX_UNHAPPYSIZE     6
 
188
#define GAME_MAX_TECHLEVEL       100
183
189
 
184
190
#define GAME_DEFAULT_ANGRYCITIZEN TRUE
185
191
 
186
 
#define GAME_DEFAULT_END_YEAR    5000
187
 
#define GAME_MIN_END_YEAR        GAME_START_YEAR
188
 
#define GAME_MAX_END_YEAR        5000
 
192
#define GAME_DEFAULT_END_TURN    5000
 
193
#define GAME_MIN_END_TURN        -32768
 
194
#define GAME_MAX_END_TURN        32767
189
195
 
190
196
#define GAME_DEFAULT_MIN_PLAYERS     1
191
197
#define GAME_MIN_MIN_PLAYERS         0
195
201
#define GAME_MIN_MAX_PLAYERS         1
196
202
#define GAME_MAX_MAX_PLAYERS         MAX_NUM_PLAYERS
197
203
 
198
 
#define GAME_DEFAULT_AIFILL          0
 
204
#define GAME_DEFAULT_AIFILL          5
199
205
#define GAME_MIN_AIFILL              0
200
206
#define GAME_MAX_AIFILL              GAME_MAX_MAX_PLAYERS
201
207
 
217
223
 
218
224
#define GAME_DEFAULT_FOGOFWAR        TRUE
219
225
 
 
226
#define GAME_DEFAULT_FOGGEDBORDERS   FALSE
 
227
 
220
228
/* 0 means no national borders. */
221
 
#define GAME_DEFAULT_BORDERS         4
 
229
#define GAME_DEFAULT_BORDERS         1
222
230
#define GAME_MIN_BORDERS             0
223
 
#define GAME_MAX_BORDERS             12
 
231
#define GAME_MAX_BORDERS             3
224
232
 
225
233
#define GAME_DEFAULT_HAPPYBORDERS    TRUE
226
234
 
227
 
#define GAME_DEFAULT_SLOW_INVASIONS  TRUE
228
 
 
229
235
#define GAME_DEFAULT_DIPLOMACY       0
230
236
#define GAME_MIN_DIPLOMACY           0
231
237
#define GAME_MAX_DIPLOMACY           4
242
248
#define GAME_MIN_CONQUERCOST         0
243
249
#define GAME_MAX_CONQUERCOST         100
244
250
 
245
 
#define GAME_DEFAULT_CITYFACTOR      14
246
 
#define GAME_MIN_CITYFACTOR          6
247
 
#define GAME_MAX_CITYFACTOR          100
248
 
 
249
251
#define GAME_DEFAULT_CITYMINDIST     0
250
252
#define GAME_MIN_CITYMINDIST         0 /* if 0, ruleset will overwrite this */
251
253
#define GAME_MAX_CITYMINDIST         5
268
270
 
269
271
#define GAME_DEFAULT_NATURALCITYNAMES TRUE
270
272
 
 
273
#define GAME_DEFAULT_MIGRATION        FALSE
 
274
 
 
275
#define GAME_DEFAULT_MGR_TURNINTERVAL 5
 
276
#define GAME_MIN_MGR_TURNINTERVAL     1
 
277
#define GAME_MAX_MGR_TURNINTERVAL     100
 
278
 
 
279
#define GAME_DEFAULT_MGR_FOODNEEDED   TRUE
 
280
 
 
281
#define GAME_DEFAULT_MGR_DISTANCE     3
 
282
#define GAME_MIN_MGR_DISTANCE         1
 
283
#define GAME_MAX_MGR_DISTANCE         7
 
284
 
 
285
#define GAME_DEFAULT_MGR_NATIONCHANCE 50
 
286
#define GAME_MIN_MGR_NATIONCHANCE     0
 
287
#define GAME_MAX_MGR_NATIONCHANCE     100
 
288
 
 
289
#define GAME_DEFAULT_MGR_WORLDCHANCE  10
 
290
#define GAME_MIN_MGR_WORLDCHANCE      0
 
291
#define GAME_MAX_MGR_WORLDCHANCE      100
 
292
 
271
293
#define GAME_DEFAULT_AQUEDUCTLOSS    0
272
294
#define GAME_MIN_AQUEDUCTLOSS        0
273
295
#define GAME_MAX_AQUEDUCTLOSS        100
274
296
 
275
297
#define GAME_DEFAULT_KILLCITIZEN     1
276
298
#define GAME_MIN_KILLCITIZEN         0
277
 
#define GAME_MAX_KILLCITIZEN         15
 
299
#define GAME_MAX_KILLCITIZEN         ((1 << MOVETYPE_LAST) - 1)
278
300
 
279
301
#define GAME_DEFAULT_TECHPENALTY     100
280
302
#define GAME_MIN_TECHPENALTY         0
284
306
#define GAME_MIN_RAZECHANCE          0
285
307
#define GAME_MAX_RAZECHANCE          100
286
308
 
287
 
#define GAME_DEFAULT_CIVSTYLE        2
288
 
#define GAME_MIN_CIVSTYLE            1
289
 
#define GAME_MAX_CIVSTYLE            2
290
 
 
291
309
#define GAME_DEFAULT_SCORELOG        FALSE
292
310
#define GAME_DEFAULT_SCORETURN       20
293
311
 
294
312
#define GAME_DEFAULT_SPACERACE       TRUE
 
313
#define GAME_DEFAULT_END_SPACESHIP   TRUE
295
314
 
296
315
#define GAME_DEFAULT_TURNBLOCK       TRUE
297
316
 
307
326
#define GAME_MIN_TIMEOUT             -1
308
327
#define GAME_MAX_TIMEOUT             8639999
309
328
 
310
 
#define GAME_DEFAULT_SIMULTANEOUS_PHASES TRUE
 
329
#define GAME_DEFAULT_PHASE_MODE 0
 
330
#define GAME_MIN_PHASE_MODE 0
 
331
#define GAME_MAX_PHASE_MODE 2
311
332
 
312
333
#define GAME_DEFAULT_TCPTIMEOUT      10
313
334
#define GAME_MIN_TCPTIMEOUT          0
333
354
#define GAME_MIN_FULLTRADESIZE       1
334
355
#define GAME_MAX_FULLTRADESIZE       50
335
356
 
 
357
#define GAME_DEFAULT_TRADEMINDIST    9
 
358
#define GAME_MIN_TRADEMINDIST        1
 
359
#define GAME_MAX_TRADEMINDIST        999
 
360
 
336
361
#define GAME_DEFAULT_BARBARIANRATE   2
337
362
#define GAME_MIN_BARBARIANRATE       0
338
363
#define GAME_MAX_BARBARIANRATE       4
339
364
 
340
 
#define GAME_DEFAULT_ONSETBARBARIAN  (GAME_START_YEAR+ \
341
 
                                      ((GAME_DEFAULT_END_YEAR-(GAME_START_YEAR))/3))
342
 
#define GAME_MIN_ONSETBARBARIAN      GAME_START_YEAR
343
 
#define GAME_MAX_ONSETBARBARIAN      GAME_MAX_END_YEAR
 
365
#define GAME_DEFAULT_ONSETBARBARIAN  60
 
366
#define GAME_MIN_ONSETBARBARIAN      0
 
367
#define GAME_MAX_ONSETBARBARIAN      GAME_MAX_END_TURN
344
368
 
345
369
#define GAME_DEFAULT_OCCUPYCHANCE    0
346
370
#define GAME_MIN_OCCUPYCHANCE        0
351
375
#define GAME_DEFAULT_RULESETDIR      "default"
352
376
 
353
377
#define GAME_DEFAULT_SAVE_NAME       "civgame"
354
 
#define GAME_DEFAULT_SAVETURNS       10
 
378
#define GAME_DEFAULT_SAVETURNS       1
 
379
#define GAME_MIN_SAVETURNS           0
 
380
#define GAME_MAX_SAVETURNS           200
355
381
 
356
382
#define GAME_DEFAULT_SKILL_LEVEL 3      /* easy */
357
383
#define GAME_OLD_DEFAULT_SKILL_LEVEL 5  /* normal; for old save games */
359
385
#define GAME_DEFAULT_DEMOGRAPHY      "NASRLPEMOqrb"
360
386
#define GAME_DEFAULT_ALLOW_TAKE      "HAhadOo"
361
387
 
 
388
#define GAME_DEFAULT_EVENT_CACHE_TURNS    1
 
389
#define GAME_MIN_EVENT_CACHE_TURNS        0
 
390
#define GAME_MAX_EVENT_CACHE_TURNS        9
 
391
 
 
392
#define GAME_DEFAULT_EVENT_CACHE_MAX_SIZE   256
 
393
#define GAME_MIN_EVENT_CACHE_MAX_SIZE        10
 
394
#define GAME_MAX_EVENT_CACHE_MAX_SIZE      1000
 
395
 
 
396
#define GAME_DEFAULT_EVENT_CACHE_CHAT     TRUE
 
397
 
 
398
#define GAME_DEFAULT_EVENT_CACHE_INFO     FALSE
 
399
 
362
400
#define GAME_DEFAULT_COMPRESS_LEVEL 6    /* if we have compression */
363
 
#define GAME_MIN_COMPRESS_LEVEL     0
 
401
#define GAME_MIN_COMPRESS_LEVEL     1
364
402
#define GAME_MAX_COMPRESS_LEVEL     9
365
 
#define GAME_NO_COMPRESS_LEVEL      0
 
403
 
 
404
#if defined(HAVE_LIBBZ2)
 
405
#  define GAME_MIN_COMPRESS_TYPE FZ_PLAIN
 
406
#  define GAME_MAX_COMPRESS_TYPE FZ_BZIP2
 
407
#  define GAME_DEFAULT_COMPRESS_TYPE FZ_BZIP2
 
408
#elif defined(HAVE_LIBZ)
 
409
#  define GAME_MIN_COMPRESS_TYPE FZ_PLAIN
 
410
#  define GAME_MAX_COMPRESS_TYPE FZ_ZLIB
 
411
#  define GAME_DEFAULT_COMPRESS_TYPE FZ_ZLIB
 
412
#else
 
413
#  define GAME_MIN_COMPRESS_TYPE FZ_PLAIN
 
414
#  define GAME_MAX_COMPRESS_TYPE FZ_PLAIN
 
415
#  define GAME_DEFAULT_COMPRESS_TYPE FZ_PLAIN
 
416
#endif
366
417
 
367
418
#define GAME_DEFAULT_ALLOWED_CITY_NAMES 1
368
419
#define GAME_MIN_ALLOWED_CITY_NAMES 0
374
425
 
375
426
#define GAME_START_YEAR -4000
376
427
 
 
428
#define GAME_MAX_READ_RECURSION 10 /* max recursion for the read command */
 
429
 
 
430
/* ruleset settings */
 
431
 
 
432
#define RS_MAX_VALUE                             10000
 
433
 
 
434
#define RS_DEFAULT_POS_YEAR_LABEL                "AD"
 
435
#define RS_DEFAULT_NEG_YEAR_LABEL                "BC"
 
436
 
 
437
#define RS_DEFAULT_ILLNESS_ON                    FALSE
 
438
 
 
439
#define RS_DEFAULT_ILLNESS_BASE_FACTOR           25
 
440
#define RS_MIN_ILLNESS_BASE_FACTOR               0
 
441
#define RS_MAX_ILLNESS_BASE_FACTOR               RS_MAX_VALUE
 
442
 
 
443
#define RS_DEFAULT_ILLNESS_MIN_SIZE              3
 
444
#define RS_MIN_ILLNESS_MIN_SIZE                  1
 
445
#define RS_MAX_ILLNESS_MIN_SIZE                  100
 
446
 
 
447
#define RS_DEFAULT_ILLNESS_TRADE_INFECTION_PCT   50
 
448
#define RS_MIN_ILLNESS_TRADE_INFECTION_PCT       0
 
449
#define RS_MAX_ILLNESS_TRADE_INFECTION_PCT       500
 
450
 
 
451
#define RS_DEFAULT_ILLNESS_POLLUTION_PCT         50
 
452
#define RS_MIN_ILLNESS_POLLUTION_PCT             0
 
453
#define RS_MAX_ILLNESS_POLLUTION_PCT             500
 
454
 
 
455
#define RS_DEFAULT_CALENDAR_SKIP_0               TRUE
 
456
 
 
457
#define RS_DEFAULT_BORDER_RADIUS_SQ_CITY         17 /* city radius 4 */
 
458
#define RS_MIN_BORDER_RADIUS_SQ_CITY             0
 
459
#define RS_MAX_BORDER_RADIUS_SQ_CITY             401 /* city radius 20 */
 
460
 
 
461
#define RS_DEFAULT_BORDER_SIZE_EFFECT            1
 
462
#define RS_MIN_BORDER_SIZE_EFFECT                0
 
463
#define RS_MAX_BORDER_SIZE_EFFECT                100
 
464
 
 
465
#define RS_DEFAULT_INCITE_BASE_COST              1000
 
466
#define RS_MIN_INCITE_BASE_COST                  0
 
467
#define RS_MAX_INCITE_BASE_COST                  RS_MAX_VALUE
 
468
 
 
469
#define RS_DEFAULT_INCITE_IMPROVEMENT_FCT        1
 
470
#define RS_MIN_INCITE_IMPROVEMENT_FCT            0
 
471
#define RS_MAX_INCITE_IMPROVEMENT_FCT            RS_MAX_VALUE
 
472
 
 
473
#define RS_DEFAULT_INCITE_UNIT_FCT               2
 
474
#define RS_MIN_INCITE_UNIT_FCT                   0
 
475
#define RS_MAX_INCITE_UNIT_FCT                   RS_MAX_VALUE
 
476
 
 
477
#define RS_DEFAULT_INCITE_TOTAL_FCT              100
 
478
#define RS_MIN_INCITE_TOTAL_FCT                  0
 
479
#define RS_MAX_INCITE_TOTAL_FCT                  RS_MAX_VALUE
 
480
 
 
481
#define RS_DEFAULT_GRANARY_FOOD_INI              20
 
482
 
 
483
#define RS_DEFAULT_GRANARY_FOOD_INC              10
 
484
#define RS_MIN_GRANARY_FOOD_INC                  0
 
485
#define RS_MAX_GRANARY_FOOD_INC                  RS_MAX_VALUE
 
486
 
 
487
#define RS_DEFAULT_CITY_CENTER_OUTPUT            0
 
488
#define RS_MIN_CITY_CENTER_OUTPUT                0
 
489
#define RS_MAX_CITY_CENTER_OUTPUT                RS_MAX_VALUE
 
490
 
 
491
#define RS_DEFAULT_CITIES_MIN_DIST               2
 
492
#define RS_MIN_CITIES_MIN_DIST                   1
 
493
#define RS_MAX_CITIES_MIN_DIST                   RS_MAX_VALUE
 
494
 
 
495
#define RS_DEFAULT_VIS_RADIUS_SQ                 5 /* city radius 2 */
 
496
#define RS_MIN_VIS_RADIUS_SQ                     0
 
497
#define RS_MAX_VIS_RADIUS_SQ                     401 /* city radius 20 */
 
498
 
 
499
#define RS_DEFAULT_BASE_POLLUTION                -20
 
500
/* no min / max values as it can be set to high negative values to
 
501
 * deactiveate pollution and high positive values to create much
 
502
 * pollution */
 
503
 
 
504
#define RS_DEFAULT_HAPPY_COST                    2
 
505
#define RS_MIN_HAPPY_COST                        0
 
506
#define RS_MAX_HAPPY_COST                        100
 
507
 
 
508
#define RS_DEFAULT_FOOD_COST                     2
 
509
#define RS_MIN_FOOD_COST                         0
 
510
#define RS_MAX_FOOD_COST                         100
 
511
 
 
512
#define RS_DEFAULT_GOLD_UPKEEP_STYLE             0
 
513
#define RS_MIN_GOLD_UPKEEP_STYLE                 0
 
514
#define RS_MAX_GOLD_UPKEEP_STYLE                 2
 
515
 
 
516
#define RS_DEFAULT_SLOW_INVASIONS                TRUE
 
517
 
 
518
#define RS_DEFAULT_TIRED_ATTACK                  FALSE
 
519
 
 
520
#define RS_DEFAULT_KILLSTACK                     TRUE
 
521
 
 
522
#define RS_DEFAULT_BASE_BRIBE_COST               750
 
523
#define RS_MIN_BASE_BRIBE_COST                   0
 
524
#define RS_MAX_BASE_BRIBE_COST                   RS_MAX_VALUE
 
525
 
 
526
#define RS_DEFAULT_RANSOM_GOLD                   100
 
527
#define RS_MIN_RANSOM_GOLD                       0
 
528
#define RS_MAX_RANSOM_GOLD                       RS_MAX_VALUE
 
529
 
 
530
#define RS_DEFAULT_PILLAGE_SELECT                TRUE
 
531
 
 
532
#define RS_DEFAULT_UPGRADE_VETERAN_LOSS          0
 
533
#define RS_MIN_UPGRADE_VETERAN_LOSS              0
 
534
#define RS_MAX_UPGRADE_VETERAN_LOSS              MAX_VET_LEVELS
 
535
 
 
536
#define RS_DEFAULT_BASE_TECH_COST                20
 
537
#define RS_MIN_BASE_TECH_COST                    0
 
538
#define RS_MAX_BASE_TECH_COST                    200
 
539
 
 
540
#define RS_DEFAULT_TECH_COST_STYLE               0
 
541
#define RS_MIN_TECH_COST_STYLE                   0
 
542
#define RS_MAX_TECH_COST_STYLE                   2
 
543
 
 
544
#define RS_DEFAULT_TECH_LEAKAGE                  0
 
545
#define RS_MIN_TECH_LEAKAGE                      0
 
546
#define RS_MAX_TECH_LEAKAGE                      3
 
547
 
377
548
#endif  /* FC__GAME_H */