Freeciv-3.3: /fast/freeciv/nightly/main/common/game.h File Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations | Functions | Variables
game.h File Reference
`#include <time.h>`
`#include "randseed.h"`
`#include "shared.h"`
`#include "timing.h"`
`#include "connection.h"`
`#include "fc_types.h"`
`#include "packets.h"`
`#include "traits.h"`

Go to the source code of this file.

## Data Structures

struct | user_flag
struct | civ_game

## Macros

#define | TURNS_NEEDED_TO_RANK 10
#define | any_web_conns() (FALSE)
#define | GAME_DEFAULT_SEED 0
#define | GAME_MIN_SEED 0
#define | GAME_MAX_SEED (MAX_UINT32 >> 1)
#define | GAME_DEFAULT_GOLD 50
#define | GAME_MIN_GOLD 0
#define | GAME_MAX_GOLD 50000
#define | GAME_DEFAULT_INFRA 0
#define | GAME_MIN_INFRA 0
#define | GAME_MAX_INFRA 50000
#define | GAME_DEFAULT_START_UNITS "ccwwx"
#define | GAME_DEFAULT_START_CITY FALSE
#define | GAME_DEFAULT_DISPERSION 0
#define | GAME_MIN_DISPERSION 0
#define | GAME_MAX_DISPERSION 10
#define | GAME_DEFAULT_TECHLEVEL 0
#define | GAME_MIN_TECHLEVEL 0
#define | GAME_MAX_TECHLEVEL 100
#define | GAME_DEFAULT_ANGRYCITIZEN TRUE
#define | GAME_DEFAULT_END_TURN 5000
#define | GAME_MIN_END_TURN 1
#define | GAME_MAX_END_TURN 32767
#define | GAME_DEFAULT_MIN_PLAYERS 1
#define | GAME_MIN_MIN_PLAYERS 0
#define | GAME_MAX_MIN_PLAYERS MAX_NUM_PLAYERS
#define | GAME_DEFAULT_MAX_PLAYERS MAX_NUM_PLAYERS
#define | GAME_MIN_MAX_PLAYERS 1
#define | GAME_MAX_MAX_PLAYERS MAX_NUM_PLAYERS
#define | GAME_DEFAULT_AIFILL 5
#define | GAME_MIN_AIFILL 0
#define | GAME_MAX_AIFILL GAME_MAX_MAX_PLAYERS
#define | GAME_DEFAULT_NATIONSET ""
#define | GAME_DEFAULT_FOODBOX 100
#define | GAME_MIN_FOODBOX 1
#define | GAME_MAX_FOODBOX 10000
#define | GAME_DEFAULT_SHIELDBOX 100
#define | GAME_MIN_SHIELDBOX 1
#define | GAME_MAX_SHIELDBOX 10000
#define | GAME_DEFAULT_SCIENCEBOX 100
#define | GAME_MIN_SCIENCEBOX 1
#define | GAME_MAX_SCIENCEBOX 10000
#define | GAME_DEFAULT_DIPLBULBCOST 0
#define | GAME_MIN_DIPLBULBCOST 0
#define | GAME_MAX_DIPLBULBCOST 100
#define | GAME_DEFAULT_DIPLGOLDCOST 0
#define | GAME_MIN_DIPLGOLDCOST 0
#define | GAME_MAX_DIPLGOLDCOST 100
#define | GAME_DEFAULT_INCITE_GOLD_LOSS_CHANCE 0
#define | GAME_MIN_INCITE_GOLD_LOSS_CHANCE 0
#define | GAME_MAX_INCITE_GOLD_LOSS_CHANCE 100
#define | GAME_DEFAULT_INCITE_GOLD_CAPT_CHANCE 0
#define | GAME_MIN_INCITE_GOLD_CAPT_CHANCE 0
#define | GAME_MAX_INCITE_GOLD_CAPT_CHANCE 100
#define | GAME_DEFAULT_FOGOFWAR TRUE
#define | GAME_DEFAULT_FOGGEDBORDERS FALSE
#define | GAME_DEFAULT_GLOBAL_WARMING TRUE
#define | GAME_DEFAULT_GLOBAL_WARMING_PERCENT 100
#define | GAME_MIN_GLOBAL_WARMING_PERCENT 1
#define | GAME_MAX_GLOBAL_WARMING_PERCENT 10000
#define | GAME_DEFAULT_NUCLEAR_WINTER TRUE
#define | GAME_DEFAULT_NUCLEAR_WINTER_PERCENT 100
#define | GAME_MIN_NUCLEAR_WINTER_PERCENT 1
#define | GAME_MAX_NUCLEAR_WINTER_PERCENT 10000
#define | GAME_DEFAULT_BORDERS BORDERS_ENABLED
#define | GAME_DEFAULT_HAPPYBORDERS HB_NATIONAL
#define | GAME_DEFAULT_DIPLOMACY DIPLO_FOR_ALL
#define | GAME_DEFAULT_DIPLCHANCE 80
#define | GAME_MIN_DIPLCHANCE 40
#define | GAME_MAX_DIPLCHANCE 100
#define | GAME_DEFAULT_FREECOST 0
#define | GAME_MIN_FREECOST 0
#define | GAME_MAX_FREECOST 100
#define | GAME_DEFAULT_CONQUERCOST 0
#define | GAME_MIN_CONQUERCOST 0
#define | GAME_MAX_CONQUERCOST 100
#define | GAME_DEFAULT_TECHLOSSFG -1
#define | GAME_MIN_TECHLOSSFG -1
#define | GAME_MAX_TECHLOSSFG 200
#define | GAME_DEFAULT_TECHLOSSREST 50
#define | GAME_MIN_TECHLOSSREST -1
#define | GAME_MAX_TECHLOSSREST 100
#define | GAME_DEFAULT_TECHLEAK 100
#define | GAME_MIN_TECHLEAK 0
#define | GAME_MAX_TECHLEAK 300
#define | GAME_DEFAULT_CITYMINDIST 2
#define | GAME_MIN_CITYMINDIST 1
#define | GAME_MAX_CITYMINDIST 11
#define | GAME_DEFAULT_CIVILWARSIZE 10
#define | GAME_MIN_CIVILWARSIZE 2 /* can't split an empire of 1 city */
#define | GAME_MAX_CIVILWARSIZE 1000
#define | GAME_DEFAULT_RESTRICTINFRA FALSE
#define | GAME_DEFAULT_UNRPROTECTS TRUE
#define | GAME_DEFAULT_CONTACTTURNS 20
#define | GAME_MIN_CONTACTTURNS 0
#define | GAME_MAX_CONTACTTURNS 100
#define | GAME_DEFAULT_CELEBRATESIZE 3
#define | GAME_DEFAULT_RAPTUREDELAY 1
#define | GAME_MIN_RAPTUREDELAY 1
#define | GAME_MAX_RAPTUREDELAY 99 /* 99 practicaly disables rapturing */
#define | GAME_DEFAULT_DISASTERS 10
#define | GAME_MIN_DISASTERS 0
#define | GAME_MAX_DISASTERS 1000
#define | GAME_DEFAULT_TRAIT_DIST_MODE TDM_FIXED
#define | GAME_DEFAULT_SAVEPALACE TRUE
#define | GAME_DEFAULT_HOMECAUGHTUNITS TRUE
#define | GAME_DEFAULT_NATURALCITYNAMES TRUE
#define | GAME_DEFAULT_MIGRATION FALSE
#define | GAME_DEFAULT_MGR_TURNINTERVAL 5
#define | GAME_MIN_MGR_TURNINTERVAL 1
#define | GAME_MAX_MGR_TURNINTERVAL 100
#define | GAME_DEFAULT_MGR_FOODNEEDED TRUE
#define | GAME_DEFAULT_MGR_DISTANCE 0
#define | GAME_MIN_MGR_DISTANCE (0 - CITY_MAP_MAX_RADIUS)
#define | GAME_MAX_MGR_DISTANCE (1 + CITY_MAP_MAX_RADIUS)
#define | GAME_DEFAULT_MGR_NATIONCHANCE 50
#define | GAME_MIN_MGR_NATIONCHANCE 0
#define | GAME_MAX_MGR_NATIONCHANCE 100
#define | GAME_DEFAULT_MGR_WORLDCHANCE 10
#define | GAME_MIN_MGR_WORLDCHANCE 0
#define | GAME_MAX_MGR_WORLDCHANCE 100
#define | GAME_DEFAULT_AQUEDUCTLOSS 0
#define | GAME_MIN_AQUEDUCTLOSS 0
#define | GAME_MAX_AQUEDUCTLOSS 100
#define | GAME_DEFAULT_KILLSTACK TRUE
#define | GAME_DEFAULT_KILLCITIZEN TRUE
#define | GAME_DEFAULT_KILLUNHOMED 0
#define | GAME_MIN_KILLUNHOMED 0
#define | GAME_MAX_KILLUNHOMED 100
#define | GAME_DEFAULT_TECHPENALTY 100
#define | GAME_MIN_TECHPENALTY 0
#define | GAME_MAX_TECHPENALTY 100
#define | GAME_DEFAULT_TECHLOST_RECV 0
#define | GAME_MIN_TECHLOST_RECV 0
#define | GAME_MAX_TECHLOST_RECV 100
#define | GAME_DEFAULT_TECHLOST_DONOR 0
#define | GAME_MIN_TECHLOST_DONOR 0
#define | GAME_MAX_TECHLOST_DONOR 100
#define | GAME_DEFAULT_TEAM_POOLED_RESEARCH TRUE
#define | GAME_DEFAULT_MULTIRESEARCH FALSE
#define | GAME_DEFAULT_RAZECHANCE 20
#define | GAME_MIN_RAZECHANCE 0
#define | GAME_MAX_RAZECHANCE 100
#define | GAME_DEFAULT_REVEALMAP REVEAL_MAP_NONE
#define | GAME_DEFAULT_SCORELOG FALSE
#define | GAME_DEFAULT_SCORELOGLEVEL SL_ALL
#define | GAME_DEFAULT_SCOREFILE "freeciv-score.log"
#define | GAME_DEFAULT_SCORETURN 20
#define | GAME_DEFAULT_VICTORY_CONDITIONS (1 << VC_SPACERACE | 1 << VC_ALLIED)
#define | GAME_DEFAULT_END_SPACESHIP TRUE
#define | GAME_DEFAULT_SPACESHIP_TRAVEL_PCT 100
#define | GAME_MIN_SPACESHIP_TRAVEL_PCT 50
#define | GAME_MAX_SPACESHIP_TRAVEL_PCT 1000
#define | GAME_DEFAULT_TURNBLOCK TRUE
#define | GAME_DEFAULT_AUTO_AI_TOGGLE FALSE
#define | GAME_DEFAULT_TIMEOUT 0
#define | GAME_DEFAULT_FIRST_TIMEOUT -1
#define | GAME_DEFAULT_TIMEOUTINT 0
#define | GAME_DEFAULT_TIMEOUTINTINC 0
#define | GAME_DEFAULT_TIMEOUTINC 0
#define | GAME_DEFAULT_TIMEOUTINCMULT 1
#define | GAME_DEFAULT_TIMEOUTADDEMOVE 0
#define | GAME_DEFAULT_TIMEOUTCOUNTER 1
#define | GAME_DEFAULT_MAXCONNECTIONSPERHOST 4
#define | GAME_MIN_MAXCONNECTIONSPERHOST 0
#define | GAME_MAX_MAXCONNECTIONSPERHOST MAX_NUM_CONNECTIONS
#define | GAME_MIN_TIMEOUT -1
#define | GAME_MAX_TIMEOUT 8639999
#define | GAME_MIN_FIRST_TIMEOUT -1
#define | GAME_MAX_FIRST_TIMEOUT GAME_MAX_TIMEOUT
#define | GAME_MIN_UNITWAITTIME 0
#define | GAME_MAX_UNITWAITTIME GAME_MAX_TIMEOUT
#define | GAME_DEFAULT_UNITWAITTIME 0
#define | GAME_DEFAULT_PHASE_MODE 0
#define | GAME_DEFAULT_TCPTIMEOUT 10
#define | GAME_MIN_TCPTIMEOUT 0
#define | GAME_MAX_TCPTIMEOUT 120
#define | GAME_DEFAULT_NETWAIT 4
#define | GAME_MIN_NETWAIT 0
#define | GAME_MAX_NETWAIT 20
#define | GAME_DEFAULT_PINGTIME 20
#define | GAME_MIN_PINGTIME 1
#define | GAME_MAX_PINGTIME 1800
#define | GAME_DEFAULT_PINGTIMEOUT 60
#define | GAME_MIN_PINGTIMEOUT 60
#define | GAME_MAX_PINGTIMEOUT 1800
#define | GAME_DEFAULT_IPHIDE FALSE
#define | GAME_DEFAULT_NOTRADESIZE 0
#define | GAME_MIN_NOTRADESIZE 0
#define | GAME_MAX_NOTRADESIZE 49
#define | GAME_DEFAULT_TRADEWORLDRELPCT 50
#define | GAME_MIN_TRADEWORLDRELPCT 0
#define | GAME_MAX_TRADEWORLDRELPCT 100
#define | GAME_DEFAULT_FULLTRADESIZE 1
#define | GAME_MIN_FULLTRADESIZE 1
#define | GAME_MAX_FULLTRADESIZE 50
#define | GAME_DEFAULT_TRADING_TECH TRUE
#define | GAME_DEFAULT_TRADING_GOLD TRUE
#define | GAME_DEFAULT_TRADING_CITY TRUE
#define | GAME_DEFAULT_CARAVAN_BONUS_STYLE CBS_CLASSIC
#define | GAME_DEFAULT_TRADEMINDIST 9
#define | GAME_MIN_TRADEMINDIST 1
#define | GAME_MAX_TRADEMINDIST 999
#define | GAME_DEFAULT_TRADE_REVENUE_STYLE TRS_CLASSIC
#define | GAME_DEFAULT_BARBARIANRATE BARBS_NORMAL
#define | GAME_DEFAULT_ONSETBARBARIAN 60
#define | GAME_MIN_ONSETBARBARIAN 1
#define | GAME_MAX_ONSETBARBARIAN GAME_MAX_END_TURN
#define | GAME_DEFAULT_OCCUPYCHANCE 0
#define | GAME_MIN_OCCUPYCHANCE 0
#define | GAME_MAX_OCCUPYCHANCE 100
#define | GAME_DEFAULT_AUTOATTACK FALSE
#define | GAME_DEFAULT_RULESETDIR "civ2civ3"
#define | GAME_DEFAULT_SAVE_NAME "freeciv"
#define | GAME_DEFAULT_SAVETURNS 1
#define | GAME_MIN_SAVETURNS 1
#define | GAME_MAX_SAVETURNS 200
#define | GAME_DEFAULT_SAVEFREQUENCY 15
#define | GAME_MIN_SAVEFREQUENCY 2
#define | GAME_MAX_SAVEFREQUENCY 1440
#define | GAME_DEFAULT_AUTOSAVES (1 << AS_TURN | 1 << AS_GAME_OVER | 1 << AS_QUITIDLE | 1 << AS_INTERRUPT)
#define | GAME_DEFAULT_THREADED_SAVE FALSE
#define | GAME_DEFAULT_USER_META_MESSAGE ""
#define | GAME_DEFAULT_SKILL_LEVEL AI_LEVEL_EASY
#define | GAME_HARDCODED_DEFAULT_SKILL_LEVEL 3 /* that was 'easy' in old saves */
#define | GAME_OLD_DEFAULT_SKILL_LEVEL 5 /* normal; for oldest save games */
#define | GAME_DEFAULT_TOP_CITIES_COUNT 5
#define | GAME_MIN_TOP_CITIES_COUNT 0
#define | GAME_MAX_TOP_CITIES_COUNT 40
#define | GAME_DEFAULT_DEMOGRAPHY "NASRLPEMOCqrb"
#define | GAME_DEFAULT_ALLOW_TAKE "HAhadOo"
#define | GAME_DEFAULT_EVENT_CACHE_TURNS 1
#define | GAME_MIN_EVENT_CACHE_TURNS 0
#define | GAME_MAX_EVENT_CACHE_TURNS (GAME_MAX_END_TURN + 1)
#define | GAME_DEFAULT_EVENT_CACHE_MAX_SIZE 256
#define | GAME_MIN_EVENT_CACHE_MAX_SIZE 10
#define | GAME_MAX_EVENT_CACHE_MAX_SIZE 20000
#define | GAME_DEFAULT_EVENT_CACHE_CHAT TRUE
#define | GAME_DEFAULT_EVENT_CACHE_INFO FALSE
#define | GAME_DEFAULT_COMPRESS_LEVEL 6 /* if we have compression */
#define | GAME_MIN_COMPRESS_LEVEL 1
#define | GAME_MAX_COMPRESS_LEVEL 9
#define | GAME_DEFAULT_COMPRESS_TYPE FZ_PLAIN
#define | GAME_DEFAULT_ALLOWED_CITY_NAMES CNM_PLAYER_UNIQUE
#define | GAME_DEFAULT_PLRCOLORMODE PLRCOL_PLR_ORDER
#define | GAME_DEFAULT_REVOLENTYPE REVOLEN_RANDOM
#define | GAME_DEFAULT_REVOLUTION_LENGTH 5
#define | GAME_MIN_REVOLUTION_LENGTH 1
#define | GAME_MAX_REVOLUTION_LENGTH 20
#define | GAME_DEFAULT_START_YEAR -4000
#define | GAME_DEFAULT_AIRLIFTINGSTYLE AIRLIFTING_CLASSICAL
#define | GAME_DEFAULT_PERSISTENTREADY PERSISTENTR_DISABLED
#define | GAME_MAX_READ_RECURSION 10 /* max recursion for the read command */
#define | GAME_DEFAULT_KICK_TIME 1800 /* 1800 seconds = 30 minutes. */
#define | GAME_MIN_KICK_TIME 0 /* 0 = disabling. */
#define | GAME_MAX_KICK_TIME 86400 /* 86400 seconds = 24 hours. */
#define | GAME_UNIT_BRIBE_DIST_MAX 32
#define | GAME_TRANSPORT_MAX_RECURSIVE 5
#define | RS_MAX_VALUE 1000000
#define | RS_DEFAULT_POS_YEAR_LABEL N_("AD")
#define | RS_DEFAULT_NEG_YEAR_LABEL N_("BC")
#define | RS_DEFAULT_ILLNESS_ON FALSE
#define | RS_DEFAULT_ILLNESS_BASE_FACTOR 25
#define | RS_MIN_ILLNESS_BASE_FACTOR 0
#define | RS_MAX_ILLNESS_BASE_FACTOR RS_MAX_VALUE
#define | RS_DEFAULT_ILLNESS_MIN_SIZE 3
#define | RS_MIN_ILLNESS_MIN_SIZE 1
#define | RS_MAX_ILLNESS_MIN_SIZE 100
#define | RS_DEFAULT_ILLNESS_TRADE_INFECTION_PCT 50
#define | RS_MIN_ILLNESS_TRADE_INFECTION_PCT 0
#define | RS_MAX_ILLNESS_TRADE_INFECTION_PCT 500
#define | RS_DEFAULT_ILLNESS_POLLUTION_PCT 50
#define | RS_MIN_ILLNESS_POLLUTION_PCT 0
#define | RS_MAX_ILLNESS_POLLUTION_PCT 500
#define | RS_DEFAULT_CALENDAR_SKIP_0 TRUE
#define | RS_DEFAULT_BORDER_RADIUS_SQ_CITY 17 /* city radius 4 */
#define | RS_MIN_BORDER_RADIUS_SQ_CITY 0
#define | RS_MAX_BORDER_RADIUS_SQ_CITY 401 /* city radius 20 */
#define | RS_DEFAULT_BORDER_SIZE_EFFECT 1
#define | RS_MIN_BORDER_SIZE_EFFECT 0
#define | RS_MAX_BORDER_SIZE_EFFECT 100
#define | RS_DEFAULT_BORDER_RADIUS_SQ_CITY_PERMANENT 0
#define | RS_MIN_BORDER_RADIUS_SQ_CITY_PERMANENT (-CITY_MAP_MAX_RADIUS_SQ)
#define | RS_MAX_BORDER_RADIUS_SQ_CITY_PERMANENT 401 /* city radius 20 */
#define | RS_DEFAULT_INCITE_BASE_COST 1000
#define | RS_MIN_INCITE_BASE_COST 0
#define | RS_MAX_INCITE_BASE_COST RS_MAX_VALUE
#define | RS_DEFAULT_INCITE_IMPROVEMENT_FCT 1
#define | RS_MIN_INCITE_IMPROVEMENT_FCT 0
#define | RS_MAX_INCITE_IMPROVEMENT_FCT RS_MAX_VALUE
#define | RS_DEFAULT_INCITE_UNIT_FCT 2
#define | RS_MIN_INCITE_UNIT_FCT 0
#define | RS_MAX_INCITE_UNIT_FCT RS_MAX_VALUE
#define | RS_DEFAULT_INCITE_TOTAL_FCT 100
#define | RS_MIN_INCITE_TOTAL_FCT 0
#define | RS_MAX_INCITE_TOTAL_FCT RS_MAX_VALUE
#define | RS_DEFAULT_GRANARY_FOOD_INI 20
#define | RS_DEFAULT_GRANARY_FOOD_INC 10
#define | RS_MIN_GRANARY_FOOD_INC 0
#define | RS_MAX_GRANARY_FOOD_INC RS_MAX_VALUE
#define | RS_DEFAULT_CITY_CENTER_OUTPUT 0
#define | RS_MIN_CITY_CENTER_OUTPUT 0
#define | RS_MAX_CITY_CENTER_OUTPUT RS_MAX_VALUE
#define | RS_DEFAULT_CITIES_MIN_DIST 2
#define | RS_MIN_CITIES_MIN_DIST 1
#define | RS_MAX_CITIES_MIN_DIST RS_MAX_VALUE
#define | RS_DEFAULT_CITY_RADIUS_SQ CITY_MAP_DEFAULT_RADIUS_SQ
#define | RS_MIN_CITY_RADIUS_SQ CITY_MAP_MIN_RADIUS_SQ
#define | RS_MAX_CITY_RADIUS_SQ CITY_MAP_MAX_RADIUS_SQ
#define | RS_DEFAULT_VIS_RADIUS_SQ 5 /* city radius 2 */
#define | RS_MIN_VIS_RADIUS_SQ 0
#define | RS_MAX_VIS_RADIUS_SQ 401 /* city radius 20 */
#define | RS_DEFAULT_BASE_POLLUTION -20
#define | RS_DEFAULT_HAPPY_COST 2
#define | RS_MIN_HAPPY_COST 0
#define | RS_MAX_HAPPY_COST 10000
#define | RS_DEFAULT_FOOD_COST 2
#define | RS_MIN_FOOD_COST 0
#define | RS_MAX_FOOD_COST 10000
#define | RS_DEFAULT_CIVIL_WAR_CELEB -5
#define | RS_DEFAULT_CIVIL_WAR_UNHAPPY 5
#define | RS_DEFAULT_TIRED_ATTACK FALSE
#define | RS_DEFAULT_NUKE_POP_LOSS_PCT 49
#define | RS_MIN_NUKE_POP_LOSS_PCT 0
#define | RS_MAX_NUKE_POP_LOSS_PCT 100
#define | RS_DEFAULT_NUKE_DEFENDER_SURVIVAL_CHANCE_PCT 0
#define | RS_MIN_NUKE_DEFENDER_SURVIVAL_CHANCE_PCT 0
#define | RS_MAX_NUKE_DEFENDER_SURVIVAL_CHANCE_PCT 100
#define | RS_DEFAULT_BASE_BRIBE_COST 750
#define | RS_MIN_BASE_BRIBE_COST 0
#define | RS_MAX_BASE_BRIBE_COST RS_MAX_VALUE
#define | RS_DEFAULT_RANSOM_GOLD 100
#define | RS_MIN_RANSOM_GOLD 0
#define | RS_MAX_RANSOM_GOLD RS_MAX_VALUE
#define | RS_DEFAULT_PILLAGE_SELECT TRUE
#define | RS_DEFAULT_UPGRADE_VETERAN_LOSS 0
#define | RS_MIN_UPGRADE_VETERAN_LOSS 0
#define | RS_MAX_UPGRADE_VETERAN_LOSS MAX_VET_LEVELS
#define | RS_DEFAULT_TECH_UPKEEP_DIVIDER 100
#define | RS_MIN_TECH_UPKEEP_DIVIDER 1
#define | RS_MAX_TECH_UPKEEP_DIVIDER 100000
#define | RS_DEFAULT_POISON_EMPTIES_FOOD_STOCK FALSE
#define | RS_DEFAULT_STEAL_MAP_REVEALS_CITIES TRUE
#define | RS_DEFAULT_ACTION_ACTOR_CONSUMING_ALWAYS FALSE
#define | RS_DEFAULT_USER_ACTION_TARGET_KIND ATK_UNIT
#define | RS_DEFAULT_ACTION_MIN_RANGE 0
#define | RS_DEFAULT_ACTION_MAX_RANGE 1
#define | RS_DEFAULT_MOVE_MIN_RANGE 1
#define | RS_DEFAULT_EXPLODE_NUCLEAR_MAX_RANGE 0
#define | RS_ACTION_NO_MAX_DISTANCE "unlimited"

## Enumerations

enum | debug_globals { DEBUG_FERRIES , DEBUG_LAST }
enum | city_names_mode { CNM_NO_RESTRICTIONS = 0 , CNM_PLAYER_UNIQUE , CNM_GLOBAL_UNIQUE , CNM_NO_STEALING }
enum | barbarians_rate { BARBS_DISABLED = 0 , BARBS_HUTS_ONLY , BARBS_NORMAL , BARBS_FREQUENT , BARBS_HORDES }
enum | autosave_type { AS_TURN = 0 , AS_GAME_OVER , AS_QUITIDLE , AS_INTERRUPT , AS_TIMER }
enum | scorelog_level { SL_ALL = 0 , SL_HUMANS }

## Functions

void | game_init (bool keep_ruleset_value)
void | game_map_init (void)
void | game_free (void)
void | game_reset (void)
void | game_ruleset_init (void)
void | game_ruleset_free (void)
int | civ_population (const struct player *pplayer)
struct city * | game_city_by_name (const char *name)
struct city * | game_city_by_number (int id)
struct unit * | game_unit_by_number (int id)
void | game_remove_unit (struct world *gworld, struct unit *punit)
void | game_remove_city (struct world *gworld, struct city *pcity)
void | initialize_globals (void)
bool | is_player_phase (const struct player *pplayer, int phase)
const char * | population_to_text (int thousand_citizen)
int | generate_save_name (const char *format, char *buf, int buflen, const char *reason)
void | user_flag_init (struct user_flag *flag)
void | user_flag_free (struct user_flag *flag)
int | current_turn_timeout (void)
static void | set_ruleset_compat_mode (bool active)
static bool | is_ruleset_compat_mode (void)

## Variables

struct civ_game | game
bool | _ruleset_compat_mode

## Macro Definition Documentation

## ◆ any_web_conns

#define any_web_conns | ( |  | ) | (FALSE)

Definition at line 316 of file game.h.

## ◆ GAME_DEFAULT_AIFILL

#define GAME_DEFAULT_AIFILL 5

Definition at line 404 of file game.h.

## ◆ GAME_DEFAULT_AIRLIFTINGSTYLE

#define GAME_DEFAULT_AIRLIFTINGSTYLE AIRLIFTING_CLASSICAL

Definition at line 742 of file game.h.

## ◆ GAME_DEFAULT_ALLOW_TAKE

#define GAME_DEFAULT_ALLOW_TAKE "HAhadOo"

Definition at line 703 of file game.h.

## ◆ GAME_DEFAULT_ALLOWED_CITY_NAMES

#define GAME_DEFAULT_ALLOWED_CITY_NAMES CNM_PLAYER_UNIQUE

Definition at line 731 of file game.h.

## ◆ GAME_DEFAULT_ANGRYCITIZEN

#define GAME_DEFAULT_ANGRYCITIZEN TRUE

Definition at line 390 of file game.h.

## ◆ GAME_DEFAULT_AQUEDUCTLOSS

#define GAME_DEFAULT_AQUEDUCTLOSS 0

Definition at line 540 of file game.h.

## ◆ GAME_DEFAULT_AUTO_AI_TOGGLE

#define GAME_DEFAULT_AUTO_AI_TOGGLE FALSE

Definition at line 590 of file game.h.

## ◆ GAME_DEFAULT_AUTOATTACK

#define GAME_DEFAULT_AUTOATTACK FALSE

Definition at line 668 of file game.h.

## ◆ GAME_DEFAULT_AUTOSAVES

#define GAME_DEFAULT_AUTOSAVES (1 << AS_TURN | 1 << AS_GAME_OVER | 1 << AS_QUITIDLE | 1 << AS_INTERRUPT)

Definition at line 687 of file game.h.

## ◆ GAME_DEFAULT_BARBARIANRATE

#define GAME_DEFAULT_BARBARIANRATE BARBS_NORMAL

Definition at line 658 of file game.h.

## ◆ GAME_DEFAULT_BORDERS

#define GAME_DEFAULT_BORDERS BORDERS_ENABLED

Definition at line 454 of file game.h.

## ◆ GAME_DEFAULT_CARAVAN_BONUS_STYLE

#define GAME_DEFAULT_CARAVAN_BONUS_STYLE CBS_CLASSIC

Definition at line 650 of file game.h.

## ◆ GAME_DEFAULT_CELEBRATESIZE

#define GAME_DEFAULT_CELEBRATESIZE 3

Definition at line 499 of file game.h.

## ◆ GAME_DEFAULT_CITYMINDIST

#define GAME_DEFAULT_CITYMINDIST 2

Definition at line 484 of file game.h.

## ◆ GAME_DEFAULT_CIVILWARSIZE

#define GAME_DEFAULT_CIVILWARSIZE 10

Definition at line 488 of file game.h.

## ◆ GAME_DEFAULT_COMPRESS_LEVEL

#define GAME_DEFAULT_COMPRESS_LEVEL 6 /* if we have compression */

Definition at line 717 of file game.h.

## ◆ GAME_DEFAULT_COMPRESS_TYPE

#define GAME_DEFAULT_COMPRESS_TYPE FZ_PLAIN

Definition at line 728 of file game.h.

## ◆ GAME_DEFAULT_CONQUERCOST

#define GAME_DEFAULT_CONQUERCOST 0

Definition at line 468 of file game.h.

## ◆ GAME_DEFAULT_CONTACTTURNS

#define GAME_DEFAULT_CONTACTTURNS 20

Definition at line 495 of file game.h.

## ◆ GAME_DEFAULT_DEMOGRAPHY

#define GAME_DEFAULT_DEMOGRAPHY "NASRLPEMOCqrb"

Definition at line 702 of file game.h.

## ◆ GAME_DEFAULT_DIPLBULBCOST

#define GAME_DEFAULT_DIPLBULBCOST 0

Definition at line 422 of file game.h.

## ◆ GAME_DEFAULT_DIPLCHANCE

#define GAME_DEFAULT_DIPLCHANCE 80

Definition at line 460 of file game.h.

## ◆ GAME_DEFAULT_DIPLGOLDCOST

#define GAME_DEFAULT_DIPLGOLDCOST 0

Definition at line 426 of file game.h.

## ◆ GAME_DEFAULT_DIPLOMACY

#define GAME_DEFAULT_DIPLOMACY DIPLO_FOR_ALL

Definition at line 458 of file game.h.

## ◆ GAME_DEFAULT_DISASTERS

#define GAME_DEFAULT_DISASTERS 10

Definition at line 505 of file game.h.

## ◆ GAME_DEFAULT_DISPERSION

#define GAME_DEFAULT_DISPERSION 0

Definition at line 382 of file game.h.

## ◆ GAME_DEFAULT_END_SPACESHIP

#define GAME_DEFAULT_END_SPACESHIP TRUE

Definition at line 582 of file game.h.

## ◆ GAME_DEFAULT_END_TURN

#define GAME_DEFAULT_END_TURN 5000

Definition at line 392 of file game.h.

## ◆ GAME_DEFAULT_EVENT_CACHE_CHAT

#define GAME_DEFAULT_EVENT_CACHE_CHAT TRUE

Definition at line 713 of file game.h.

## ◆ GAME_DEFAULT_EVENT_CACHE_INFO

#define GAME_DEFAULT_EVENT_CACHE_INFO FALSE

Definition at line 715 of file game.h.

## ◆ GAME_DEFAULT_EVENT_CACHE_MAX_SIZE

#define GAME_DEFAULT_EVENT_CACHE_MAX_SIZE 256

Definition at line 709 of file game.h.

## ◆ GAME_DEFAULT_EVENT_CACHE_TURNS

#define GAME_DEFAULT_EVENT_CACHE_TURNS 1

Definition at line 705 of file game.h.

## ◆ GAME_DEFAULT_FIRST_TIMEOUT

#define GAME_DEFAULT_FIRST_TIMEOUT -1

Definition at line 593 of file game.h.

## ◆ GAME_DEFAULT_FOGGEDBORDERS

#define GAME_DEFAULT_FOGGEDBORDERS FALSE

Definition at line 440 of file game.h.

## ◆ GAME_DEFAULT_FOGOFWAR

#define GAME_DEFAULT_FOGOFWAR TRUE

Definition at line 438 of file game.h.

## ◆ GAME_DEFAULT_FOODBOX

#define GAME_DEFAULT_FOODBOX 100

Definition at line 410 of file game.h.

## ◆ GAME_DEFAULT_FREECOST

#define GAME_DEFAULT_FREECOST 0

Definition at line 464 of file game.h.

## ◆ GAME_DEFAULT_FULLTRADESIZE

#define GAME_DEFAULT_FULLTRADESIZE 1

Definition at line 642 of file game.h.

## ◆ GAME_DEFAULT_GLOBAL_WARMING

#define GAME_DEFAULT_GLOBAL_WARMING TRUE

Definition at line 442 of file game.h.

## ◆ GAME_DEFAULT_GLOBAL_WARMING_PERCENT

#define GAME_DEFAULT_GLOBAL_WARMING_PERCENT 100

Definition at line 444 of file game.h.

## ◆ GAME_DEFAULT_GOLD

#define GAME_DEFAULT_GOLD 50

Definition at line 371 of file game.h.

## ◆ GAME_DEFAULT_HAPPYBORDERS

#define GAME_DEFAULT_HAPPYBORDERS HB_NATIONAL

Definition at line 456 of file game.h.

## ◆ GAME_DEFAULT_HOMECAUGHTUNITS

#define GAME_DEFAULT_HOMECAUGHTUNITS TRUE

Definition at line 513 of file game.h.

## ◆ GAME_DEFAULT_INCITE_GOLD_CAPT_CHANCE

#define GAME_DEFAULT_INCITE_GOLD_CAPT_CHANCE 0

Definition at line 434 of file game.h.

## ◆ GAME_DEFAULT_INCITE_GOLD_LOSS_CHANCE

#define GAME_DEFAULT_INCITE_GOLD_LOSS_CHANCE 0

Definition at line 430 of file game.h.

## ◆ GAME_DEFAULT_INFRA

#define GAME_DEFAULT_INFRA 0

Definition at line 375 of file game.h.

## ◆ GAME_DEFAULT_IPHIDE

#define GAME_DEFAULT_IPHIDE FALSE

Definition at line 632 of file game.h.

## ◆ GAME_DEFAULT_KICK_TIME

#define GAME_DEFAULT_KICK_TIME 1800 /* 1800 seconds = 30 minutes. */

Definition at line 747 of file game.h.

## ◆ GAME_DEFAULT_KILLCITIZEN

#define GAME_DEFAULT_KILLCITIZEN TRUE

Definition at line 545 of file game.h.

## ◆ GAME_DEFAULT_KILLSTACK

#define GAME_DEFAULT_KILLSTACK TRUE

Definition at line 544 of file game.h.

## ◆ GAME_DEFAULT_KILLUNHOMED

#define GAME_DEFAULT_KILLUNHOMED 0

Definition at line 547 of file game.h.

## ◆ GAME_DEFAULT_MAX_PLAYERS

#define GAME_DEFAULT_MAX_PLAYERS MAX_NUM_PLAYERS

Definition at line 400 of file game.h.

## ◆ GAME_DEFAULT_MAXCONNECTIONSPERHOST

#define GAME_DEFAULT_MAXCONNECTIONSPERHOST 4

Definition at line 601 of file game.h.

## ◆ GAME_DEFAULT_MGR_DISTANCE

#define GAME_DEFAULT_MGR_DISTANCE 0

Definition at line 528 of file game.h.

## ◆ GAME_DEFAULT_MGR_FOODNEEDED

#define GAME_DEFAULT_MGR_FOODNEEDED TRUE

Definition at line 523 of file game.h.

## ◆ GAME_DEFAULT_MGR_NATIONCHANCE

#define GAME_DEFAULT_MGR_NATIONCHANCE 50

Definition at line 532 of file game.h.

## ◆ GAME_DEFAULT_MGR_TURNINTERVAL

#define GAME_DEFAULT_MGR_TURNINTERVAL 5

Definition at line 519 of file game.h.

## ◆ GAME_DEFAULT_MGR_WORLDCHANCE

#define GAME_DEFAULT_MGR_WORLDCHANCE 10

Definition at line 536 of file game.h.

## ◆ GAME_DEFAULT_MIGRATION

#define GAME_DEFAULT_MIGRATION FALSE

Definition at line 517 of file game.h.

## ◆ GAME_DEFAULT_MIN_PLAYERS

#define GAME_DEFAULT_MIN_PLAYERS 1

Definition at line 396 of file game.h.

## ◆ GAME_DEFAULT_MULTIRESEARCH

#define GAME_DEFAULT_MULTIRESEARCH FALSE

Definition at line 564 of file game.h.

## ◆ GAME_DEFAULT_NATIONSET

#define GAME_DEFAULT_NATIONSET ""

Definition at line 408 of file game.h.

## ◆ GAME_DEFAULT_NATURALCITYNAMES

#define GAME_DEFAULT_NATURALCITYNAMES TRUE

Definition at line 515 of file game.h.

## ◆ GAME_DEFAULT_NETWAIT

#define GAME_DEFAULT_NETWAIT 4

Definition at line 620 of file game.h.

## ◆ GAME_DEFAULT_NOTRADESIZE

#define GAME_DEFAULT_NOTRADESIZE 0

Definition at line 634 of file game.h.

## ◆ GAME_DEFAULT_NUCLEAR_WINTER

#define GAME_DEFAULT_NUCLEAR_WINTER TRUE

Definition at line 448 of file game.h.

## ◆ GAME_DEFAULT_NUCLEAR_WINTER_PERCENT

#define GAME_DEFAULT_NUCLEAR_WINTER_PERCENT 100

Definition at line 450 of file game.h.

## ◆ GAME_DEFAULT_OCCUPYCHANCE

#define GAME_DEFAULT_OCCUPYCHANCE 0

Definition at line 664 of file game.h.

## ◆ GAME_DEFAULT_ONSETBARBARIAN

#define GAME_DEFAULT_ONSETBARBARIAN 60

Definition at line 660 of file game.h.

## ◆ GAME_DEFAULT_PERSISTENTREADY

#define GAME_DEFAULT_PERSISTENTREADY PERSISTENTR_DISABLED

Definition at line 743 of file game.h.

## ◆ GAME_DEFAULT_PHASE_MODE

#define GAME_DEFAULT_PHASE_MODE 0

Definition at line 614 of file game.h.

## ◆ GAME_DEFAULT_PINGTIME

#define GAME_DEFAULT_PINGTIME 20

Definition at line 624 of file game.h.

## ◆ GAME_DEFAULT_PINGTIMEOUT

#define GAME_DEFAULT_PINGTIMEOUT 60

Definition at line 628 of file game.h.

## ◆ GAME_DEFAULT_PLRCOLORMODE

#define GAME_DEFAULT_PLRCOLORMODE PLRCOL_PLR_ORDER

Definition at line 733 of file game.h.

## ◆ GAME_DEFAULT_RAPTUREDELAY

#define GAME_DEFAULT_RAPTUREDELAY 1

Definition at line 501 of file game.h.

## ◆ GAME_DEFAULT_RAZECHANCE

#define GAME_DEFAULT_RAZECHANCE 20

Definition at line 566 of file game.h.

## ◆ GAME_DEFAULT_RESTRICTINFRA

#define GAME_DEFAULT_RESTRICTINFRA FALSE

Definition at line 492 of file game.h.

## ◆ GAME_DEFAULT_REVEALMAP

#define GAME_DEFAULT_REVEALMAP REVEAL_MAP_NONE

Definition at line 570 of file game.h.

## ◆ GAME_DEFAULT_REVOLENTYPE

#define GAME_DEFAULT_REVOLENTYPE REVOLEN_RANDOM

Definition at line 735 of file game.h.

## ◆ GAME_DEFAULT_REVOLUTION_LENGTH

#define GAME_DEFAULT_REVOLUTION_LENGTH 5

Definition at line 736 of file game.h.

## ◆ GAME_DEFAULT_RULESETDIR

#define GAME_DEFAULT_RULESETDIR "civ2civ3"

Definition at line 673 of file game.h.

## ◆ GAME_DEFAULT_SAVE_NAME

#define GAME_DEFAULT_SAVE_NAME "freeciv"

Definition at line 676 of file game.h.

## ◆ GAME_DEFAULT_SAVEFREQUENCY

#define GAME_DEFAULT_SAVEFREQUENCY 15

Definition at line 680 of file game.h.

## ◆ GAME_DEFAULT_SAVEPALACE

#define GAME_DEFAULT_SAVEPALACE TRUE

Definition at line 511 of file game.h.

## ◆ GAME_DEFAULT_SAVETURNS

#define GAME_DEFAULT_SAVETURNS 1

Definition at line 677 of file game.h.

## ◆ GAME_DEFAULT_SCIENCEBOX

#define GAME_DEFAULT_SCIENCEBOX 100

Definition at line 418 of file game.h.

## ◆ GAME_DEFAULT_SCOREFILE

#define GAME_DEFAULT_SCOREFILE "freeciv-score.log"

Definition at line 574 of file game.h.

## ◆ GAME_DEFAULT_SCORELOG

#define GAME_DEFAULT_SCORELOG FALSE

Definition at line 572 of file game.h.

## ◆ GAME_DEFAULT_SCORELOGLEVEL

#define GAME_DEFAULT_SCORELOGLEVEL SL_ALL

Definition at line 573 of file game.h.

## ◆ GAME_DEFAULT_SCORETURN

#define GAME_DEFAULT_SCORETURN 20

Definition at line 579 of file game.h.

## ◆ GAME_DEFAULT_SEED

#define GAME_DEFAULT_SEED 0

Definition at line 367 of file game.h.

## ◆ GAME_DEFAULT_SHIELDBOX

#define GAME_DEFAULT_SHIELDBOX 100

Definition at line 414 of file game.h.

## ◆ GAME_DEFAULT_SKILL_LEVEL

#define GAME_DEFAULT_SKILL_LEVEL AI_LEVEL_EASY

Definition at line 694 of file game.h.

## ◆ GAME_DEFAULT_SPACESHIP_TRAVEL_PCT

#define GAME_DEFAULT_SPACESHIP_TRAVEL_PCT 100

Definition at line 584 of file game.h.

## ◆ GAME_DEFAULT_START_CITY

#define GAME_DEFAULT_START_CITY FALSE

Definition at line 380 of file game.h.

## ◆ GAME_DEFAULT_START_UNITS

#define GAME_DEFAULT_START_UNITS "ccwwx"

Definition at line 379 of file game.h.

## ◆ GAME_DEFAULT_START_YEAR

#define GAME_DEFAULT_START_YEAR -4000

Definition at line 740 of file game.h.

## ◆ GAME_DEFAULT_TCPTIMEOUT

#define GAME_DEFAULT_TCPTIMEOUT 10

Definition at line 616 of file game.h.

## ◆ GAME_DEFAULT_TEAM_POOLED_RESEARCH

#define GAME_DEFAULT_TEAM_POOLED_RESEARCH TRUE

Definition at line 563 of file game.h.

## ◆ GAME_DEFAULT_TECHLEAK

#define GAME_DEFAULT_TECHLEAK 100

Definition at line 480 of file game.h.

## ◆ GAME_DEFAULT_TECHLEVEL

#define GAME_DEFAULT_TECHLEVEL 0

Definition at line 386 of file game.h.

## ◆ GAME_DEFAULT_TECHLOSSFG

#define GAME_DEFAULT_TECHLOSSFG -1

Definition at line 472 of file game.h.

## ◆ GAME_DEFAULT_TECHLOSSREST

#define GAME_DEFAULT_TECHLOSSREST 50

Definition at line 476 of file game.h.

## ◆ GAME_DEFAULT_TECHLOST_DONOR

#define GAME_DEFAULT_TECHLOST_DONOR 0

Definition at line 559 of file game.h.

## ◆ GAME_DEFAULT_TECHLOST_RECV

#define GAME_DEFAULT_TECHLOST_RECV 0

Definition at line 555 of file game.h.

## ◆ GAME_DEFAULT_TECHPENALTY

#define GAME_DEFAULT_TECHPENALTY 100

Definition at line 551 of file game.h.

## ◆ GAME_DEFAULT_THREADED_SAVE

#define GAME_DEFAULT_THREADED_SAVE FALSE

Definition at line 690 of file game.h.

## ◆ GAME_DEFAULT_TIMEOUT

#define GAME_DEFAULT_TIMEOUT 0

Definition at line 592 of file game.h.

## ◆ GAME_DEFAULT_TIMEOUTADDEMOVE

#define GAME_DEFAULT_TIMEOUTADDEMOVE 0

Definition at line 598 of file game.h.

## ◆ GAME_DEFAULT_TIMEOUTCOUNTER

#define GAME_DEFAULT_TIMEOUTCOUNTER 1

Definition at line 599 of file game.h.

## ◆ GAME_DEFAULT_TIMEOUTINC

#define GAME_DEFAULT_TIMEOUTINC 0

Definition at line 596 of file game.h.

## ◆ GAME_DEFAULT_TIMEOUTINCMULT

#define GAME_DEFAULT_TIMEOUTINCMULT 1

Definition at line 597 of file game.h.

## ◆ GAME_DEFAULT_TIMEOUTINT

#define GAME_DEFAULT_TIMEOUTINT 0

Definition at line 594 of file game.h.

## ◆ GAME_DEFAULT_TIMEOUTINTINC

#define GAME_DEFAULT_TIMEOUTINTINC 0

Definition at line 595 of file game.h.

## ◆ GAME_DEFAULT_TOP_CITIES_COUNT

#define GAME_DEFAULT_TOP_CITIES_COUNT 5

Definition at line 698 of file game.h.

## ◆ GAME_DEFAULT_TRADE_REVENUE_STYLE

#define GAME_DEFAULT_TRADE_REVENUE_STYLE TRS_CLASSIC

Definition at line 656 of file game.h.

## ◆ GAME_DEFAULT_TRADEMINDIST

#define GAME_DEFAULT_TRADEMINDIST 9

Definition at line 652 of file game.h.

## ◆ GAME_DEFAULT_TRADEWORLDRELPCT

#define GAME_DEFAULT_TRADEWORLDRELPCT 50

Definition at line 638 of file game.h.

## ◆ GAME_DEFAULT_TRADING_CITY

#define GAME_DEFAULT_TRADING_CITY TRUE

Definition at line 648 of file game.h.

## ◆ GAME_DEFAULT_TRADING_GOLD

#define GAME_DEFAULT_TRADING_GOLD TRUE

Definition at line 647 of file game.h.

## ◆ GAME_DEFAULT_TRADING_TECH

#define GAME_DEFAULT_TRADING_TECH TRUE

Definition at line 646 of file game.h.

## ◆ GAME_DEFAULT_TRAIT_DIST_MODE

#define GAME_DEFAULT_TRAIT_DIST_MODE TDM_FIXED

Definition at line 509 of file game.h.

## ◆ GAME_DEFAULT_TURNBLOCK

#define GAME_DEFAULT_TURNBLOCK TRUE

Definition at line 588 of file game.h.

## ◆ GAME_DEFAULT_UNITWAITTIME

#define GAME_DEFAULT_UNITWAITTIME 0

Definition at line 612 of file game.h.

## ◆ GAME_DEFAULT_UNRPROTECTS

#define GAME_DEFAULT_UNRPROTECTS TRUE

Definition at line 493 of file game.h.

## ◆ GAME_DEFAULT_USER_META_MESSAGE

#define GAME_DEFAULT_USER_META_MESSAGE ""

Definition at line 692 of file game.h.

## ◆ GAME_DEFAULT_VICTORY_CONDITIONS

#define GAME_DEFAULT_VICTORY_CONDITIONS (1 << VC_SPACERACE | 1 << VC_ALLIED)

Definition at line 581 of file game.h.

## ◆ GAME_HARDCODED_DEFAULT_SKILL_LEVEL

#define GAME_HARDCODED_DEFAULT_SKILL_LEVEL 3 /* that was 'easy' in old saves */

Definition at line 695 of file game.h.

## ◆ GAME_MAX_AIFILL

#define GAME_MAX_AIFILL GAME_MAX_MAX_PLAYERS

Definition at line 406 of file game.h.

## ◆ GAME_MAX_AQUEDUCTLOSS

#define GAME_MAX_AQUEDUCTLOSS 100

Definition at line 542 of file game.h.

## ◆ GAME_MAX_CITYMINDIST

#define GAME_MAX_CITYMINDIST 11

Definition at line 486 of file game.h.

## ◆ GAME_MAX_CIVILWARSIZE

#define GAME_MAX_CIVILWARSIZE 1000

Definition at line 490 of file game.h.

## ◆ GAME_MAX_COMPRESS_LEVEL

#define GAME_MAX_COMPRESS_LEVEL 9

Definition at line 719 of file game.h.

## ◆ GAME_MAX_CONQUERCOST

#define GAME_MAX_CONQUERCOST 100

Definition at line 470 of file game.h.

## ◆ GAME_MAX_CONTACTTURNS

#define GAME_MAX_CONTACTTURNS 100

Definition at line 497 of file game.h.

## ◆ GAME_MAX_DIPLBULBCOST

#define GAME_MAX_DIPLBULBCOST 100

Definition at line 424 of file game.h.

## ◆ GAME_MAX_DIPLCHANCE

#define GAME_MAX_DIPLCHANCE 100

Definition at line 462 of file game.h.

## ◆ GAME_MAX_DIPLGOLDCOST

#define GAME_MAX_DIPLGOLDCOST 100

Definition at line 428 of file game.h.

## ◆ GAME_MAX_DISASTERS

#define GAME_MAX_DISASTERS 1000

Definition at line 507 of file game.h.

## ◆ GAME_MAX_DISPERSION

#define GAME_MAX_DISPERSION 10

Definition at line 384 of file game.h.

## ◆ GAME_MAX_END_TURN

#define GAME_MAX_END_TURN 32767

Definition at line 394 of file game.h.

## ◆ GAME_MAX_EVENT_CACHE_MAX_SIZE

#define GAME_MAX_EVENT_CACHE_MAX_SIZE 20000

Definition at line 711 of file game.h.

## ◆ GAME_MAX_EVENT_CACHE_TURNS

#define GAME_MAX_EVENT_CACHE_TURNS (GAME_MAX_END_TURN + 1)

Definition at line 707 of file game.h.

## ◆ GAME_MAX_FIRST_TIMEOUT

#define GAME_MAX_FIRST_TIMEOUT GAME_MAX_TIMEOUT

Definition at line 608 of file game.h.

## ◆ GAME_MAX_FOODBOX

#define GAME_MAX_FOODBOX 10000

Definition at line 412 of file game.h.

## ◆ GAME_MAX_FREECOST

#define GAME_MAX_FREECOST 100

Definition at line 466 of file game.h.

## ◆ GAME_MAX_FULLTRADESIZE

#define GAME_MAX_FULLTRADESIZE 50

Definition at line 644 of file game.h.

## ◆ GAME_MAX_GLOBAL_WARMING_PERCENT

#define GAME_MAX_GLOBAL_WARMING_PERCENT 10000

Definition at line 446 of file game.h.

## ◆ GAME_MAX_GOLD

#define GAME_MAX_GOLD 50000

Definition at line 373 of file game.h.

## ◆ GAME_MAX_INCITE_GOLD_CAPT_CHANCE

#define GAME_MAX_INCITE_GOLD_CAPT_CHANCE 100

Definition at line 436 of file game.h.

## ◆ GAME_MAX_INCITE_GOLD_LOSS_CHANCE

#define GAME_MAX_INCITE_GOLD_LOSS_CHANCE 100

Definition at line 432 of file game.h.

## ◆ GAME_MAX_INFRA

#define GAME_MAX_INFRA 50000

Definition at line 377 of file game.h.

## ◆ GAME_MAX_KICK_TIME

#define GAME_MAX_KICK_TIME 86400 /* 86400 seconds = 24 hours. */

Definition at line 749 of file game.h.

## ◆ GAME_MAX_KILLUNHOMED

#define GAME_MAX_KILLUNHOMED 100

Definition at line 549 of file game.h.

## ◆ GAME_MAX_MAX_PLAYERS

#define GAME_MAX_MAX_PLAYERS MAX_NUM_PLAYERS

Definition at line 402 of file game.h.

## ◆ GAME_MAX_MAXCONNECTIONSPERHOST

#define GAME_MAX_MAXCONNECTIONSPERHOST MAX_NUM_CONNECTIONS

Definition at line 603 of file game.h.

## ◆ GAME_MAX_MGR_DISTANCE

#define GAME_MAX_MGR_DISTANCE (1 + CITY_MAP_MAX_RADIUS)

Definition at line 530 of file game.h.

## ◆ GAME_MAX_MGR_NATIONCHANCE

#define GAME_MAX_MGR_NATIONCHANCE 100

Definition at line 534 of file game.h.

## ◆ GAME_MAX_MGR_TURNINTERVAL

#define GAME_MAX_MGR_TURNINTERVAL 100

Definition at line 521 of file game.h.

## ◆ GAME_MAX_MGR_WORLDCHANCE

#define GAME_MAX_MGR_WORLDCHANCE 100

Definition at line 538 of file game.h.

## ◆ GAME_MAX_MIN_PLAYERS

#define GAME_MAX_MIN_PLAYERS MAX_NUM_PLAYERS

Definition at line 398 of file game.h.

## ◆ GAME_MAX_NETWAIT

#define GAME_MAX_NETWAIT 20

Definition at line 622 of file game.h.

## ◆ GAME_MAX_NOTRADESIZE

#define GAME_MAX_NOTRADESIZE 49

Definition at line 636 of file game.h.

## ◆ GAME_MAX_NUCLEAR_WINTER_PERCENT

#define GAME_MAX_NUCLEAR_WINTER_PERCENT 10000

Definition at line 452 of file game.h.

## ◆ GAME_MAX_OCCUPYCHANCE

#define GAME_MAX_OCCUPYCHANCE 100

Definition at line 666 of file game.h.

## ◆ GAME_MAX_ONSETBARBARIAN

#define GAME_MAX_ONSETBARBARIAN GAME_MAX_END_TURN

Definition at line 662 of file game.h.

## ◆ GAME_MAX_PINGTIME

#define GAME_MAX_PINGTIME 1800

Definition at line 626 of file game.h.

## ◆ GAME_MAX_PINGTIMEOUT

#define GAME_MAX_PINGTIMEOUT 1800

Definition at line 630 of file game.h.

## ◆ GAME_MAX_RAPTUREDELAY

#define GAME_MAX_RAPTUREDELAY 99 /* 99 practicaly disables rapturing */

Definition at line 503 of file game.h.

## ◆ GAME_MAX_RAZECHANCE

#define GAME_MAX_RAZECHANCE 100

Definition at line 568 of file game.h.

## ◆ GAME_MAX_READ_RECURSION

#define GAME_MAX_READ_RECURSION 10 /* max recursion for the read command */

Definition at line 745 of file game.h.

## ◆ GAME_MAX_REVOLUTION_LENGTH

#define GAME_MAX_REVOLUTION_LENGTH 20

Definition at line 738 of file game.h.

## ◆ GAME_MAX_SAVEFREQUENCY

#define GAME_MAX_SAVEFREQUENCY 1440

Definition at line 682 of file game.h.

## ◆ GAME_MAX_SAVETURNS

#define GAME_MAX_SAVETURNS 200

Definition at line 679 of file game.h.

## ◆ GAME_MAX_SCIENCEBOX

#define GAME_MAX_SCIENCEBOX 10000

Definition at line 420 of file game.h.

## ◆ GAME_MAX_SEED

#define GAME_MAX_SEED (MAX_UINT32 >> 1)

Definition at line 369 of file game.h.

## ◆ GAME_MAX_SHIELDBOX

#define GAME_MAX_SHIELDBOX 10000

Definition at line 416 of file game.h.

## ◆ GAME_MAX_SPACESHIP_TRAVEL_PCT

#define GAME_MAX_SPACESHIP_TRAVEL_PCT 1000

Definition at line 586 of file game.h.

## ◆ GAME_MAX_TCPTIMEOUT

#define GAME_MAX_TCPTIMEOUT 120

Definition at line 618 of file game.h.

## ◆ GAME_MAX_TECHLEAK

#define GAME_MAX_TECHLEAK 300

Definition at line 482 of file game.h.

## ◆ GAME_MAX_TECHLEVEL

#define GAME_MAX_TECHLEVEL 100

Definition at line 388 of file game.h.

## ◆ GAME_MAX_TECHLOSSFG

#define GAME_MAX_TECHLOSSFG 200

Definition at line 474 of file game.h.

## ◆ GAME_MAX_TECHLOSSREST

#define GAME_MAX_TECHLOSSREST 100

Definition at line 478 of file game.h.

## ◆ GAME_MAX_TECHLOST_DONOR

#define GAME_MAX_TECHLOST_DONOR 100

Definition at line 561 of file game.h.

## ◆ GAME_MAX_TECHLOST_RECV

#define GAME_MAX_TECHLOST_RECV 100

Definition at line 557 of file game.h.

## ◆ GAME_MAX_TECHPENALTY

#define GAME_MAX_TECHPENALTY 100

Definition at line 553 of file game.h.

## ◆ GAME_MAX_TIMEOUT

#define GAME_MAX_TIMEOUT 8639999

Definition at line 606 of file game.h.

## ◆ GAME_MAX_TOP_CITIES_COUNT

#define GAME_MAX_TOP_CITIES_COUNT 40

Definition at line 700 of file game.h.

## ◆ GAME_MAX_TRADEMINDIST

#define GAME_MAX_TRADEMINDIST 999

Definition at line 654 of file game.h.

## ◆ GAME_MAX_TRADEWORLDRELPCT

#define GAME_MAX_TRADEWORLDRELPCT 100

Definition at line 640 of file game.h.

## ◆ GAME_MAX_UNITWAITTIME

#define GAME_MAX_UNITWAITTIME GAME_MAX_TIMEOUT

Definition at line 611 of file game.h.

## ◆ GAME_MIN_AIFILL

#define GAME_MIN_AIFILL 0

Definition at line 405 of file game.h.

## ◆ GAME_MIN_AQUEDUCTLOSS

#define GAME_MIN_AQUEDUCTLOSS 0

Definition at line 541 of file game.h.

## ◆ GAME_MIN_CITYMINDIST

#define GAME_MIN_CITYMINDIST 1

Definition at line 485 of file game.h.

## ◆ GAME_MIN_CIVILWARSIZE

#define GAME_MIN_CIVILWARSIZE 2 /* can't split an empire of 1 city */

Definition at line 489 of file game.h.

## ◆ GAME_MIN_COMPRESS_LEVEL

#define GAME_MIN_COMPRESS_LEVEL 1

Definition at line 718 of file game.h.

## ◆ GAME_MIN_CONQUERCOST

#define GAME_MIN_CONQUERCOST 0

Definition at line 469 of file game.h.

## ◆ GAME_MIN_CONTACTTURNS

#define GAME_MIN_CONTACTTURNS 0

Definition at line 496 of file game.h.

## ◆ GAME_MIN_DIPLBULBCOST

#define GAME_MIN_DIPLBULBCOST 0

Definition at line 423 of file game.h.

## ◆ GAME_MIN_DIPLCHANCE

#define GAME_MIN_DIPLCHANCE 40

Definition at line 461 of file game.h.

## ◆ GAME_MIN_DIPLGOLDCOST

#define GAME_MIN_DIPLGOLDCOST 0

Definition at line 427 of file game.h.

## ◆ GAME_MIN_DISASTERS

#define GAME_MIN_DISASTERS 0

Definition at line 506 of file game.h.

## ◆ GAME_MIN_DISPERSION

#define GAME_MIN_DISPERSION 0

Definition at line 383 of file game.h.

## ◆ GAME_MIN_END_TURN

#define GAME_MIN_END_TURN 1

Definition at line 393 of file game.h.

## ◆ GAME_MIN_EVENT_CACHE_MAX_SIZE

#define GAME_MIN_EVENT_CACHE_MAX_SIZE 10

Definition at line 710 of file game.h.

## ◆ GAME_MIN_EVENT_CACHE_TURNS

#define GAME_MIN_EVENT_CACHE_TURNS 0

Definition at line 706 of file game.h.

## ◆ GAME_MIN_FIRST_TIMEOUT

#define GAME_MIN_FIRST_TIMEOUT -1

Definition at line 607 of file game.h.

## ◆ GAME_MIN_FOODBOX

#define GAME_MIN_FOODBOX 1

Definition at line 411 of file game.h.

## ◆ GAME_MIN_FREECOST

#define GAME_MIN_FREECOST 0

Definition at line 465 of file game.h.

## ◆ GAME_MIN_FULLTRADESIZE

#define GAME_MIN_FULLTRADESIZE 1

Definition at line 643 of file game.h.

## ◆ GAME_MIN_GLOBAL_WARMING_PERCENT

#define GAME_MIN_GLOBAL_WARMING_PERCENT 1

Definition at line 445 of file game.h.

## ◆ GAME_MIN_GOLD

#define GAME_MIN_GOLD 0

Definition at line 372 of file game.h.

## ◆ GAME_MIN_INCITE_GOLD_CAPT_CHANCE

#define GAME_MIN_INCITE_GOLD_CAPT_CHANCE 0

Definition at line 435 of file game.h.

## ◆ GAME_MIN_INCITE_GOLD_LOSS_CHANCE

#define GAME_MIN_INCITE_GOLD_LOSS_CHANCE 0

Definition at line 431 of file game.h.

## ◆ GAME_MIN_INFRA

#define GAME_MIN_INFRA 0

Definition at line 376 of file game.h.

## ◆ GAME_MIN_KICK_TIME

#define GAME_MIN_KICK_TIME 0 /* 0 = disabling. */

Definition at line 748 of file game.h.

## ◆ GAME_MIN_KILLUNHOMED

#define GAME_MIN_KILLUNHOMED 0

Definition at line 548 of file game.h.

## ◆ GAME_MIN_MAX_PLAYERS

#define GAME_MIN_MAX_PLAYERS 1

Definition at line 401 of file game.h.

## ◆ GAME_MIN_MAXCONNECTIONSPERHOST

#define GAME_MIN_MAXCONNECTIONSPERHOST 0

Definition at line 602 of file game.h.

## ◆ GAME_MIN_MGR_DISTANCE

#define GAME_MIN_MGR_DISTANCE (0 - CITY_MAP_MAX_RADIUS)

Definition at line 529 of file game.h.

## ◆ GAME_MIN_MGR_NATIONCHANCE

#define GAME_MIN_MGR_NATIONCHANCE 0

Definition at line 533 of file game.h.

## ◆ GAME_MIN_MGR_TURNINTERVAL

#define GAME_MIN_MGR_TURNINTERVAL 1

Definition at line 520 of file game.h.

## ◆ GAME_MIN_MGR_WORLDCHANCE

#define GAME_MIN_MGR_WORLDCHANCE 0

Definition at line 537 of file game.h.

## ◆ GAME_MIN_MIN_PLAYERS

#define GAME_MIN_MIN_PLAYERS 0

Definition at line 397 of file game.h.

## ◆ GAME_MIN_NETWAIT

#define GAME_MIN_NETWAIT 0

Definition at line 621 of file game.h.

## ◆ GAME_MIN_NOTRADESIZE

#define GAME_MIN_NOTRADESIZE 0

Definition at line 635 of file game.h.

## ◆ GAME_MIN_NUCLEAR_WINTER_PERCENT

#define GAME_MIN_NUCLEAR_WINTER_PERCENT 1

Definition at line 451 of file game.h.

## ◆ GAME_MIN_OCCUPYCHANCE

#define GAME_MIN_OCCUPYCHANCE 0

Definition at line 665 of file game.h.

## ◆ GAME_MIN_ONSETBARBARIAN

#define GAME_MIN_ONSETBARBARIAN 1

Definition at line 661 of file game.h.

## ◆ GAME_MIN_PINGTIME

#define GAME_MIN_PINGTIME 1

Definition at line 625 of file game.h.

## ◆ GAME_MIN_PINGTIMEOUT

#define GAME_MIN_PINGTIMEOUT 60

Definition at line 629 of file game.h.

## ◆ GAME_MIN_RAPTUREDELAY

#define GAME_MIN_RAPTUREDELAY 1

Definition at line 502 of file game.h.

## ◆ GAME_MIN_RAZECHANCE

#define GAME_MIN_RAZECHANCE 0

Definition at line 567 of file game.h.

## ◆ GAME_MIN_REVOLUTION_LENGTH

#define GAME_MIN_REVOLUTION_LENGTH 1

Definition at line 737 of file game.h.

## ◆ GAME_MIN_SAVEFREQUENCY

#define GAME_MIN_SAVEFREQUENCY 2

Definition at line 681 of file game.h.

## ◆ GAME_MIN_SAVETURNS

#define GAME_MIN_SAVETURNS 1

Definition at line 678 of file game.h.

## ◆ GAME_MIN_SCIENCEBOX

#define GAME_MIN_SCIENCEBOX 1

Definition at line 419 of file game.h.

## ◆ GAME_MIN_SEED

#define GAME_MIN_SEED 0

Definition at line 368 of file game.h.

## ◆ GAME_MIN_SHIELDBOX

#define GAME_MIN_SHIELDBOX 1

Definition at line 415 of file game.h.

## ◆ GAME_MIN_SPACESHIP_TRAVEL_PCT

#define GAME_MIN_SPACESHIP_TRAVEL_PCT 50

Definition at line 585 of file game.h.

## ◆ GAME_MIN_TCPTIMEOUT

#define GAME_MIN_TCPTIMEOUT 0

Definition at line 617 of file game.h.

## ◆ GAME_MIN_TECHLEAK

#define GAME_MIN_TECHLEAK 0

Definition at line 481 of file game.h.

## ◆ GAME_MIN_TECHLEVEL

#define GAME_MIN_TECHLEVEL 0

Definition at line 387 of file game.h.

## ◆ GAME_MIN_TECHLOSSFG

#define GAME_MIN_TECHLOSSFG -1

Definition at line 473 of file game.h.

## ◆ GAME_MIN_TECHLOSSREST

#define GAME_MIN_TECHLOSSREST -1

Definition at line 477 of file game.h.

## ◆ GAME_MIN_TECHLOST_DONOR

#define GAME_MIN_TECHLOST_DONOR 0

Definition at line 560 of file game.h.

## ◆ GAME_MIN_TECHLOST_RECV

#define GAME_MIN_TECHLOST_RECV 0

Definition at line 556 of file game.h.

## ◆ GAME_MIN_TECHPENALTY

#define GAME_MIN_TECHPENALTY 0

Definition at line 552 of file game.h.

## ◆ GAME_MIN_TIMEOUT

#define GAME_MIN_TIMEOUT -1

Definition at line 605 of file game.h.

## ◆ GAME_MIN_TOP_CITIES_COUNT

#define GAME_MIN_TOP_CITIES_COUNT 0

Definition at line 699 of file game.h.

## ◆ GAME_MIN_TRADEMINDIST

#define GAME_MIN_TRADEMINDIST 1

Definition at line 653 of file game.h.

## ◆ GAME_MIN_TRADEWORLDRELPCT

#define GAME_MIN_TRADEWORLDRELPCT 0

Definition at line 639 of file game.h.

## ◆ GAME_MIN_UNITWAITTIME

#define GAME_MIN_UNITWAITTIME 0

Definition at line 610 of file game.h.

## ◆ GAME_OLD_DEFAULT_SKILL_LEVEL

#define GAME_OLD_DEFAULT_SKILL_LEVEL 5 /* normal; for oldest save games */

Definition at line 696 of file game.h.

## ◆ GAME_TRANSPORT_MAX_RECURSIVE

#define GAME_TRANSPORT_MAX_RECURSIVE 5

Definition at line 755 of file game.h.

## ◆ GAME_UNIT_BRIBE_DIST_MAX

#define GAME_UNIT_BRIBE_DIST_MAX 32

Definition at line 752 of file game.h.

## ◆ RS_ACTION_NO_MAX_DISTANCE

#define RS_ACTION_NO_MAX_DISTANCE "unlimited"

Definition at line 889 of file game.h.

## ◆ RS_DEFAULT_ACTION_ACTOR_CONSUMING_ALWAYS

#define RS_DEFAULT_ACTION_ACTOR_CONSUMING_ALWAYS FALSE

Definition at line 881 of file game.h.

## ◆ RS_DEFAULT_ACTION_MAX_RANGE

#define RS_DEFAULT_ACTION_MAX_RANGE 1

Definition at line 884 of file game.h.

## ◆ RS_DEFAULT_ACTION_MIN_RANGE

#define RS_DEFAULT_ACTION_MIN_RANGE 0

Definition at line 883 of file game.h.

## ◆ RS_DEFAULT_BASE_BRIBE_COST

#define RS_DEFAULT_BASE_BRIBE_COST 750

Definition at line 861 of file game.h.

## ◆ RS_DEFAULT_BASE_POLLUTION

#define RS_DEFAULT_BASE_POLLUTION -20

Definition at line 837 of file game.h.

## ◆ RS_DEFAULT_BORDER_RADIUS_SQ_CITY

#define RS_DEFAULT_BORDER_RADIUS_SQ_CITY 17 /* city radius 4 */

Definition at line 786 of file game.h.

## ◆ RS_DEFAULT_BORDER_RADIUS_SQ_CITY_PERMANENT

#define RS_DEFAULT_BORDER_RADIUS_SQ_CITY_PERMANENT 0

Definition at line 794 of file game.h.

## ◆ RS_DEFAULT_BORDER_SIZE_EFFECT

#define RS_DEFAULT_BORDER_SIZE_EFFECT 1

Definition at line 790 of file game.h.

## ◆ RS_DEFAULT_CALENDAR_SKIP_0

#define RS_DEFAULT_CALENDAR_SKIP_0 TRUE

Definition at line 784 of file game.h.

## ◆ RS_DEFAULT_CITIES_MIN_DIST

#define RS_DEFAULT_CITIES_MIN_DIST 2

Definition at line 824 of file game.h.

## ◆ RS_DEFAULT_CITY_CENTER_OUTPUT

#define RS_DEFAULT_CITY_CENTER_OUTPUT 0

Definition at line 820 of file game.h.

## ◆ RS_DEFAULT_CITY_RADIUS_SQ

#define RS_DEFAULT_CITY_RADIUS_SQ CITY_MAP_DEFAULT_RADIUS_SQ

Definition at line 829 of file game.h.

## ◆ RS_DEFAULT_CIVIL_WAR_CELEB

#define RS_DEFAULT_CIVIL_WAR_CELEB -5

Definition at line 850 of file game.h.

## ◆ RS_DEFAULT_CIVIL_WAR_UNHAPPY

#define RS_DEFAULT_CIVIL_WAR_UNHAPPY 5

Definition at line 851 of file game.h.

## ◆ RS_DEFAULT_EXPLODE_NUCLEAR_MAX_RANGE

#define RS_DEFAULT_EXPLODE_NUCLEAR_MAX_RANGE 0

Definition at line 887 of file game.h.

## ◆ RS_DEFAULT_FOOD_COST

#define RS_DEFAULT_FOOD_COST 2

Definition at line 846 of file game.h.

## ◆ RS_DEFAULT_GRANARY_FOOD_INC

#define RS_DEFAULT_GRANARY_FOOD_INC 10

Definition at line 816 of file game.h.

## ◆ RS_DEFAULT_GRANARY_FOOD_INI

#define RS_DEFAULT_GRANARY_FOOD_INI 20

Definition at line 814 of file game.h.

## ◆ RS_DEFAULT_HAPPY_COST

#define RS_DEFAULT_HAPPY_COST 2

Definition at line 842 of file game.h.

## ◆ RS_DEFAULT_ILLNESS_BASE_FACTOR

#define RS_DEFAULT_ILLNESS_BASE_FACTOR 25

Definition at line 768 of file game.h.

## ◆ RS_DEFAULT_ILLNESS_MIN_SIZE

#define RS_DEFAULT_ILLNESS_MIN_SIZE 3

Definition at line 772 of file game.h.

## ◆ RS_DEFAULT_ILLNESS_ON

#define RS_DEFAULT_ILLNESS_ON FALSE

Definition at line 766 of file game.h.

## ◆ RS_DEFAULT_ILLNESS_POLLUTION_PCT

#define RS_DEFAULT_ILLNESS_POLLUTION_PCT 50

Definition at line 780 of file game.h.

## ◆ RS_DEFAULT_ILLNESS_TRADE_INFECTION_PCT

#define RS_DEFAULT_ILLNESS_TRADE_INFECTION_PCT 50

Definition at line 776 of file game.h.

## ◆ RS_DEFAULT_INCITE_BASE_COST

#define RS_DEFAULT_INCITE_BASE_COST 1000

Definition at line 798 of file game.h.

## ◆ RS_DEFAULT_INCITE_IMPROVEMENT_FCT

#define RS_DEFAULT_INCITE_IMPROVEMENT_FCT 1

Definition at line 802 of file game.h.

## ◆ RS_DEFAULT_INCITE_TOTAL_FCT

#define RS_DEFAULT_INCITE_TOTAL_FCT 100

Definition at line 810 of file game.h.

## ◆ RS_DEFAULT_INCITE_UNIT_FCT

#define RS_DEFAULT_INCITE_UNIT_FCT 2

Definition at line 806 of file game.h.

## ◆ RS_DEFAULT_MOVE_MIN_RANGE

#define RS_DEFAULT_MOVE_MIN_RANGE 1

Definition at line 886 of file game.h.

## ◆ RS_DEFAULT_NEG_YEAR_LABEL

#define RS_DEFAULT_NEG_YEAR_LABEL N_("BC")

Definition at line 764 of file game.h.

## ◆ RS_DEFAULT_NUKE_DEFENDER_SURVIVAL_CHANCE_PCT

#define RS_DEFAULT_NUKE_DEFENDER_SURVIVAL_CHANCE_PCT 0

Definition at line 857 of file game.h.

## ◆ RS_DEFAULT_NUKE_POP_LOSS_PCT

#define RS_DEFAULT_NUKE_POP_LOSS_PCT 49

Definition at line 854 of file game.h.

## ◆ RS_DEFAULT_PILLAGE_SELECT

#define RS_DEFAULT_PILLAGE_SELECT TRUE

Definition at line 869 of file game.h.

## ◆ RS_DEFAULT_POISON_EMPTIES_FOOD_STOCK

#define RS_DEFAULT_POISON_EMPTIES_FOOD_STOCK FALSE

Definition at line 879 of file game.h.

## ◆ RS_DEFAULT_POS_YEAR_LABEL

#define RS_DEFAULT_POS_YEAR_LABEL N_("AD")

Definition at line 762 of file game.h.

## ◆ RS_DEFAULT_RANSOM_GOLD

#define RS_DEFAULT_RANSOM_GOLD 100

Definition at line 865 of file game.h.

## ◆ RS_DEFAULT_STEAL_MAP_REVEALS_CITIES

#define RS_DEFAULT_STEAL_MAP_REVEALS_CITIES TRUE

Definition at line 880 of file game.h.

## ◆ RS_DEFAULT_TECH_UPKEEP_DIVIDER

#define RS_DEFAULT_TECH_UPKEEP_DIVIDER 100

Definition at line 875 of file game.h.

## ◆ RS_DEFAULT_TIRED_ATTACK

#define RS_DEFAULT_TIRED_ATTACK FALSE

Definition at line 853 of file game.h.

## ◆ RS_DEFAULT_UPGRADE_VETERAN_LOSS

#define RS_DEFAULT_UPGRADE_VETERAN_LOSS 0

Definition at line 871 of file game.h.

## ◆ RS_DEFAULT_USER_ACTION_TARGET_KIND

#define RS_DEFAULT_USER_ACTION_TARGET_KIND ATK_UNIT

Definition at line 882 of file game.h.

## ◆ RS_DEFAULT_VIS_RADIUS_SQ

#define RS_DEFAULT_VIS_RADIUS_SQ 5 /* city radius 2 */

Definition at line 833 of file game.h.

## ◆ RS_MAX_BASE_BRIBE_COST

#define RS_MAX_BASE_BRIBE_COST RS_MAX_VALUE

Definition at line 863 of file game.h.

## ◆ RS_MAX_BORDER_RADIUS_SQ_CITY

#define RS_MAX_BORDER_RADIUS_SQ_CITY 401 /* city radius 20 */

Definition at line 788 of file game.h.

## ◆ RS_MAX_BORDER_RADIUS_SQ_CITY_PERMANENT

#define RS_MAX_BORDER_RADIUS_SQ_CITY_PERMANENT 401 /* city radius 20 */

Definition at line 796 of file game.h.

## ◆ RS_MAX_BORDER_SIZE_EFFECT

#define RS_MAX_BORDER_SIZE_EFFECT 100

Definition at line 792 of file game.h.

## ◆ RS_MAX_CITIES_MIN_DIST

#define RS_MAX_CITIES_MIN_DIST RS_MAX_VALUE

Definition at line 826 of file game.h.

## ◆ RS_MAX_CITY_CENTER_OUTPUT

#define RS_MAX_CITY_CENTER_OUTPUT RS_MAX_VALUE

Definition at line 822 of file game.h.

## ◆ RS_MAX_CITY_RADIUS_SQ

#define RS_MAX_CITY_RADIUS_SQ CITY_MAP_MAX_RADIUS_SQ

Definition at line 831 of file game.h.

## ◆ RS_MAX_FOOD_COST

#define RS_MAX_FOOD_COST 10000

Definition at line 848 of file game.h.

## ◆ RS_MAX_GRANARY_FOOD_INC

#define RS_MAX_GRANARY_FOOD_INC RS_MAX_VALUE

Definition at line 818 of file game.h.

## ◆ RS_MAX_HAPPY_COST

#define RS_MAX_HAPPY_COST 10000

Definition at line 844 of file game.h.

## ◆ RS_MAX_ILLNESS_BASE_FACTOR

#define RS_MAX_ILLNESS_BASE_FACTOR RS_MAX_VALUE

Definition at line 770 of file game.h.

## ◆ RS_MAX_ILLNESS_MIN_SIZE

#define RS_MAX_ILLNESS_MIN_SIZE 100

Definition at line 774 of file game.h.

## ◆ RS_MAX_ILLNESS_POLLUTION_PCT

#define RS_MAX_ILLNESS_POLLUTION_PCT 500

Definition at line 782 of file game.h.

## ◆ RS_MAX_ILLNESS_TRADE_INFECTION_PCT

#define RS_MAX_ILLNESS_TRADE_INFECTION_PCT 500

Definition at line 778 of file game.h.

## ◆ RS_MAX_INCITE_BASE_COST

#define RS_MAX_INCITE_BASE_COST RS_MAX_VALUE

Definition at line 800 of file game.h.

## ◆ RS_MAX_INCITE_IMPROVEMENT_FCT

#define RS_MAX_INCITE_IMPROVEMENT_FCT RS_MAX_VALUE

Definition at line 804 of file game.h.

## ◆ RS_MAX_INCITE_TOTAL_FCT

#define RS_MAX_INCITE_TOTAL_FCT RS_MAX_VALUE

Definition at line 812 of file game.h.

## ◆ RS_MAX_INCITE_UNIT_FCT

#define RS_MAX_INCITE_UNIT_FCT RS_MAX_VALUE

Definition at line 808 of file game.h.

## ◆ RS_MAX_NUKE_DEFENDER_SURVIVAL_CHANCE_PCT

#define RS_MAX_NUKE_DEFENDER_SURVIVAL_CHANCE_PCT 100

Definition at line 859 of file game.h.

## ◆ RS_MAX_NUKE_POP_LOSS_PCT

#define RS_MAX_NUKE_POP_LOSS_PCT 100

Definition at line 856 of file game.h.

## ◆ RS_MAX_RANSOM_GOLD

#define RS_MAX_RANSOM_GOLD RS_MAX_VALUE

Definition at line 867 of file game.h.

## ◆ RS_MAX_TECH_UPKEEP_DIVIDER

#define RS_MAX_TECH_UPKEEP_DIVIDER 100000

Definition at line 877 of file game.h.

## ◆ RS_MAX_UPGRADE_VETERAN_LOSS

#define RS_MAX_UPGRADE_VETERAN_LOSS MAX_VET_LEVELS

Definition at line 873 of file game.h.

## ◆ RS_MAX_VALUE

#define RS_MAX_VALUE 1000000

Definition at line 759 of file game.h.

## ◆ RS_MAX_VIS_RADIUS_SQ

#define RS_MAX_VIS_RADIUS_SQ 401 /* city radius 20 */

Definition at line 835 of file game.h.

## ◆ RS_MIN_BASE_BRIBE_COST

#define RS_MIN_BASE_BRIBE_COST 0

Definition at line 862 of file game.h.

## ◆ RS_MIN_BORDER_RADIUS_SQ_CITY

#define RS_MIN_BORDER_RADIUS_SQ_CITY 0

Definition at line 787 of file game.h.

## ◆ RS_MIN_BORDER_RADIUS_SQ_CITY_PERMANENT

#define RS_MIN_BORDER_RADIUS_SQ_CITY_PERMANENT (-CITY_MAP_MAX_RADIUS_SQ)

Definition at line 795 of file game.h.

## ◆ RS_MIN_BORDER_SIZE_EFFECT

#define RS_MIN_BORDER_SIZE_EFFECT 0

Definition at line 791 of file game.h.

## ◆ RS_MIN_CITIES_MIN_DIST

#define RS_MIN_CITIES_MIN_DIST 1

Definition at line 825 of file game.h.

## ◆ RS_MIN_CITY_CENTER_OUTPUT

#define RS_MIN_CITY_CENTER_OUTPUT 0

Definition at line 821 of file game.h.

## ◆ RS_MIN_CITY_RADIUS_SQ

#define RS_MIN_CITY_RADIUS_SQ CITY_MAP_MIN_RADIUS_SQ

Definition at line 830 of file game.h.

## ◆ RS_MIN_FOOD_COST

#define RS_MIN_FOOD_COST 0

Definition at line 847 of file game.h.

## ◆ RS_MIN_GRANARY_FOOD_INC

#define RS_MIN_GRANARY_FOOD_INC 0

Definition at line 817 of file game.h.

## ◆ RS_MIN_HAPPY_COST

#define RS_MIN_HAPPY_COST 0

Definition at line 843 of file game.h.

## ◆ RS_MIN_ILLNESS_BASE_FACTOR

#define RS_MIN_ILLNESS_BASE_FACTOR 0

Definition at line 769 of file game.h.

## ◆ RS_MIN_ILLNESS_MIN_SIZE

#define RS_MIN_ILLNESS_MIN_SIZE 1

Definition at line 773 of file game.h.

## ◆ RS_MIN_ILLNESS_POLLUTION_PCT

#define RS_MIN_ILLNESS_POLLUTION_PCT 0

Definition at line 781 of file game.h.

## ◆ RS_MIN_ILLNESS_TRADE_INFECTION_PCT

#define RS_MIN_ILLNESS_TRADE_INFECTION_PCT 0

Definition at line 777 of file game.h.

## ◆ RS_MIN_INCITE_BASE_COST

#define RS_MIN_INCITE_BASE_COST 0

Definition at line 799 of file game.h.

## ◆ RS_MIN_INCITE_IMPROVEMENT_FCT

#define RS_MIN_INCITE_IMPROVEMENT_FCT 0

Definition at line 803 of file game.h.

## ◆ RS_MIN_INCITE_TOTAL_FCT

#define RS_MIN_INCITE_TOTAL_FCT 0

Definition at line 811 of file game.h.

## ◆ RS_MIN_INCITE_UNIT_FCT

#define RS_MIN_INCITE_UNIT_FCT 0

Definition at line 807 of file game.h.

## ◆ RS_MIN_NUKE_DEFENDER_SURVIVAL_CHANCE_PCT

#define RS_MIN_NUKE_DEFENDER_SURVIVAL_CHANCE_PCT 0

Definition at line 858 of file game.h.

## ◆ RS_MIN_NUKE_POP_LOSS_PCT

#define RS_MIN_NUKE_POP_LOSS_PCT 0

Definition at line 855 of file game.h.

## ◆ RS_MIN_RANSOM_GOLD

#define RS_MIN_RANSOM_GOLD 0

Definition at line 866 of file game.h.

## ◆ RS_MIN_TECH_UPKEEP_DIVIDER

#define RS_MIN_TECH_UPKEEP_DIVIDER 1

Definition at line 876 of file game.h.

## ◆ RS_MIN_UPGRADE_VETERAN_LOSS

#define RS_MIN_UPGRADE_VETERAN_LOSS 0

Definition at line 872 of file game.h.

## ◆ RS_MIN_VIS_RADIUS_SQ

#define RS_MIN_VIS_RADIUS_SQ 0

Definition at line 834 of file game.h.

## ◆ TURNS_NEEDED_TO_RANK

#define TURNS_NEEDED_TO_RANK 10

Definition at line 80 of file game.h.

## Enumeration Type Documentation

## ◆ autosave_type

enum autosave_type

Enumerator
AS_TURN |
AS_GAME_OVER |
AS_QUITIDLE |
AS_INTERRUPT |
AS_TIMER |

Definition at line 59 of file game.h.

## ◆ barbarians_rate

enum barbarians_rate

Enumerator
BARBS_DISABLED |
BARBS_HUTS_ONLY |
BARBS_NORMAL |
BARBS_FREQUENT |
BARBS_HORDES |

Definition at line 51 of file game.h.

## ◆ city_names_mode

enum city_names_mode

Enumerator
CNM_NO_RESTRICTIONS |
CNM_PLAYER_UNIQUE |
CNM_GLOBAL_UNIQUE |
CNM_NO_STEALING |

Definition at line 44 of file game.h.

## ◆ debug_globals

enum debug_globals

Enumerator
DEBUG_FERRIES |
DEBUG_LAST |

Definition at line 39 of file game.h.

## ◆ scorelog_level

enum scorelog_level

Enumerator
SL_ALL |
SL_HUMANS |

Definition at line 67 of file game.h.

## Function Documentation

## ◆ civ_population()

int civ_population | ( | const struct player * | pplayer | ) |

Count the # of thousand citizen in a civilisation.

Definition at line 74 of file game.c.

Referenced by get_info_label_text(), get_info_label_text_popup(), show_new_turn_info(), and update_info_label().

## ◆ current_turn_timeout()

int current_turn_timeout | ( | void |  | ) |

Return timeout value for the current turn.

Definition at line 854 of file game.c.

Referenced by begin_phase(), check_for_full_turn_done(), get_seconds_to_turndone(), get_timeout_label_text(), handle_new_year(), handle_timeout_info(), increase_timeout_because_unit_moved(), real_timer_callback(), send_game_info(), server_sniff_all_input(), set_seconds_to_turndone(), unit_move(), and update_timeout_label().

## ◆ game_city_by_name()

struct city * game_city_by_name | ( | const char * | name | ) |

Find city with given name from any player.

Definition at line 88 of file game.c.

Referenced by city_name_suggestion(), is_allowed_city_name(), and search_for_city_name().

## ◆ game_city_by_number()

struct city * game_city_by_number | ( | int | id | ) |

Often used function to get a city pointer from a city ID. City may be any city in the game. This now always uses fast idex method, instead of looking through all cities of all players.

Definition at line 107 of file game.c.

Referenced by aiguard_charge_city(), aiguard_check_guard(), aiguard_clear_charge(), aiguard_update_charge(), airlift(), goto_dialog::airlift_to(), chatwdg::anchor_clicked(), building_advisor(), city_dialog::buy(), caravan_establish_trade(), caravan_find_best_destination(), caravan_find_best_destination_notransit(), caravan_help_build(), caravan_marketplace(), check_city(), city_changed(), city_exist(), city_is_virtual(), city_model_get(), city_receives_goods(), city_dialog::city_rename(), city_unit_unhappiness(), client_diplomacy_clause_string(), client_remove_unit(), conquer_city(), conquer_city2(), cowt_callback(), create_city(), create_present_supported_units_widget_list(), create_unit_full(), dai_caravan_can_trade_cities_diff_cont(), dai_choose_help_wonder(), dai_evaluate_tile_for_air_attack(), dai_is_unit_tired_waiting_boat(), dai_manage_caravan(), dai_military_defend(), dai_wonder_city_distance(), destroy_city(), diplomat_embassy(), diplomat_incite(), diplomat_incite_callback(), diplomat_incite_escape(), diplomat_incite_yes_callback(), diplomat_investigate(), diplomat_sabotage(), diplomat_sabotage_esc(), diplomat_steal(), diplomat_steal_esc(), city_widget::display_list_menu(), city_dialog::display_worklist_menu(), do_capture_units(), do_unit_establish_trade(), event_after(), event_after(), expl_act_not_enabl(), find_something_to_kill(), game_remove_unit(), get_city_dialog_output_text(), get_selected_city(), goto_dialog::go_to_city(), goto_city_callback(), gui_refresh_unit_city_dialogs(), handle_city_info(), handle_city_nationalities(), handle_city_rally_point(), handle_city_remove(), handle_city_sabotage_list(), handle_city_short_info(), handle_city_update_counters(), handle_diplomacy_accept_treaty_req(), handle_diplomacy_create_clause_req(), handle_edit_city(), handle_edit_city_remove(), handle_investigate_started(), handle_player_diplstate(), handle_tile_info(), handle_trade_route_info(), handle_unit_action_answer(), handle_unit_action_query(), handle_unit_actions(), handle_unit_packet_common(), handle_unit_short_info(), handle_worker_task(), handle_worker_task(), goto_dialog::item_selected(), join_city(), link_mark_tile(), map_unit_homecity_enqueue(), middle_supported_unit_release(), impr_item::mouseDoubleClickEvent(), nuke_city(), objtype_get_object_from_id(), one_city_trade_benefit(), popup_action_selection(), popup_cma_from_city_report_callback(), popup_info_text(), qtg_refresh_unit_city_dialogs(), rally_set_tile(), real_bodyguard_log(), real_menus_update(), redraw_info_city_dialog(), redraw_unit_info_label(), reestablish_city_trade_routes(), refresh_airlift_column(), refresh_unit_city_dialogs(), remove_trade_route(), request_action_details_callback(), sabotage_impr_callback(), city_dialog::save_worklist(), server_remove_unit_full(), set_city_production(), sg_load_counters(), sg_load_player_units(), sg_load_player_units(), simple_action_callback(), simple_action_callback(), mr_menu::slot_autocaravan(), spy_advances_response(), spy_embassy(), spy_escape(), spy_improvements_response(), spy_incite_callback(), spy_investigate(), spy_nuke_city(), spy_nuke_city_esc(), spy_poison(), spy_poison_esc(), spy_request_sabotage_esc_list(), spy_request_sabotage_list(), spy_request_strike_bld_list(), spy_sabotage(), spy_sabotage_esc_request(), spy_sabotage_request(), spy_steal_callback(), spy_steal_gold(), spy_steal_gold_esc(), spy_steal_maps(), spy_steal_maps_esc(), spy_steal_popup_shared(), spy_steal_shared(), spy_steal_something(), spy_strike_bld_request(), supported_unit_callback(), supported_unit_callback(), supported_unit_middle_callback(), texai_refresh(), texai_req_worker_task_rcv(), text_tag_replace_text(), text_tag_start_sequence(), transform_unit(), unit_bribe_cost(), unit_can_est_trade_route_here(), unit_change_homecity_handling(), unit_change_owner(), unit_disband_recover(), unit_get_goods(), unit_home_city(), unit_move_consequences(), unit_perform_action(), unit_upgrade(), update_city_activities(), upgrade_callback(), upgrade_callback(), and usdlg_get_unit_descr().

## ◆ game_free()

void game_free | ( | void |  | ) |

Frees all memory of the game.

Definition at line 476 of file game.c.

Referenced by client_game_free(), game_reset(), and server_game_free().

## ◆ game_init()

void game_init | ( | bool | keep_ruleset_value | ) |

Initialise all game settings.

The variables are listed in alphabetical order.

Definition at line 444 of file game.c.

Referenced by client_game_init(), game_reset(), main(), and server_game_init().

## ◆ game_map_init()

void game_map_init | ( | void |  | ) |

Initialize map-specific parts of the game structure. Maybe these should be moved into the map structure?

Definition at line 463 of file game.c.

Referenced by srv_ready().

## ◆ game_remove_city()

void game_remove_city | ( | struct world * | gworld,
|  | struct city * | pcity
| ) |  |

Remove city from game.

Definition at line 185 of file game.c.

Referenced by client_remove_city(), player_clear(), and remove_city().

## ◆ game_remove_unit()

void game_remove_unit | ( | struct world * | gworld,
|  | struct unit * | punit
| ) |  |

In the server call wipe_unit(), and never this function directly.

Definition at line 124 of file game.c.

Referenced by client_remove_unit(), player_clear(), and server_remove_unit_full().

## ◆ game_reset()

void game_reset | ( | void |  | ) |

Do all changes to change view, and not full game_free()/game_init().

Definition at line 494 of file game.c.

Referenced by client_game_reset().

## ◆ game_ruleset_free()

void game_ruleset_free | ( | void |  | ) |

Frees all memory which in objects which are read from a ruleset.

Definition at line 567 of file game.c.

Referenced by game_free(), handle_ruleset_control(), and load_rulesetdir().

## ◆ game_ruleset_init()

void game_ruleset_init | ( | void |  | ) |

Initialize the objects which will read from a ruleset.

Definition at line 518 of file game.c.

Referenced by game_init(), handle_ruleset_control(), and load_rulesetdir().

## ◆ game_unit_by_number()

struct unit * game_unit_by_number | ( | int | id | ) |

Find unit out of all units in game: now uses fast idex method, instead of looking through all units of all players.

Definition at line 116 of file game.c.

Referenced by act_sel_done_primary(), act_sel_location_callback(), act_sel_new_extra_tgt_callback(), act_sel_new_unit_tgt_callback(), action_confirmation(), action_decision_clear_want(), action_selection_next_in_focus(), adv_unit_execute_path(), aiguard_charge_unit(), aiguard_check_charge_unit(), aiguard_check_guard(), aiguard_clear_charge(), aiguard_clear_guard(), aiguard_guard_of(), aiguard_update_charge(), airlift(), chatwdg::anchor_clicked(), attack(), base(), caravan_establish_trade(), caravan_help_build(), caravan_marketplace(), clean(), compare_units(), conquer_city(), conquer_city2(), conquer_extras(), conquer_extras2(), create_advances_list(), create_improvements_list(), cultivate(), dai_auto_settler_run(), dai_diplomat_bribe_nearby(), dai_hunter_manage(), dai_hunter_try_launch(), dai_manage_airunit(), dai_manage_military(), dai_manage_paratrooper(), dai_military_attack(), dai_unit_attack(), dai_unit_move(), dai_unit_new_task(), debug_command(), destroy_city(), diplomat_bribe(), diplomat_bribe_callback(), diplomat_bribe_yes_callback(), diplomat_embassy(), diplomat_incite(), diplomat_incite_callback(), diplomat_incite_escape(), diplomat_incite_yes_callback(), diplomat_investigate(), diplomat_queue_handle_primary(), diplomat_queue_handle_primary(), diplomat_sabotage(), diplomat_sabotage_esc(), diplomat_steal(), diplomat_steal_esc(), disembark1(), disembark2(), do_attack(), do_capture_units(), enter_hut(), enter_hut2(), event_after(), event_after(), find_best_city_placement(), fortify(), frighten_hut(), frighten_hut2(), handle_edit_unit(), handle_edit_unit_remove_by_id(), handle_player_diplstate(), handle_unit_action_answer(), handle_unit_action_query(), handle_unit_actions(), handle_unit_combat_info(), handle_unit_get_actions(), handle_unit_packet_common(), handle_unit_remove(), homeless(), hud_unit_combat::hud_unit_combat(), irrigate(), join_city(), link_mark_tile(), map_claim_base(), mine(), nuke(), nuke_city(), objtype_get_object_from_id(), paradrop(), paradrop_conquer(), paradrop_enter(), paradrop_enter_conquer(), paradrop_frighten(), paradrop_frighten_conquer(), pillage(), pillage_callback(), pillage_something(), plant(), popup_action_selection(), popup_upgrade_dialog(), real_bodyguard_log(), regular_move(), request_action_details_callback(), request_do_action(), road(), sabotage_impr_callback(), select_more_arrow_callback(), select_more_arrow_pixmap_callback(), select_unit_image_callback(), select_unit_pic_callback(), choice_dialog::set_layout(), sg_load_player_units_transport(), sg_load_player_units_transport(), sha_unit_change(), sha_unit_new(), simple_action_callback(), simple_action_callback(), spy_advances_response(), spy_embassy(), spy_escape(), spy_improvements_response(), spy_incite_callback(), spy_investigate(), spy_nuke_city(), spy_nuke_city_esc(), spy_poison(), spy_poison_esc(), spy_request_sabotage_esc_list(), spy_request_sabotage_list(), spy_request_strike_bld_list(), spy_sabotage(), spy_sabotage_esc_request(), spy_sabotage_request(), spy_steal_callback(), spy_steal_gold(), spy_steal_gold_esc(), spy_steal_maps(), spy_steal_maps_esc(), spy_steal_popup_shared(), spy_steal_shared(), spy_steal_something(), spy_strike_bld_request(), suicide_attack(), text_tag_replace_text(), text_tag_start_sequence(), tgt_extra_change_callback(), tgt_unit_change_callback(), transfer_city(), transform_terrain(), transport_response_callback(), unit_disband_recover(), unit_home_city(), unit_is_alive(), unit_is_virtual(), unit_perform_action(), unit_survive_autoattack(), unit_upgrade(), choice_dialog::update_dialog(), upgrade_callback(), upgrade_callback(), and usdlg_cmd_exec().

## ◆ generate_save_name()

int generate_save_name | ( | const char * | format,
|  | char * | buf,
|  | int | buflen,
|  | const char * | reason
| ) |  |

Generate a default save file name and place it in the provided buffer. Within the name the following custom formats are allowed:

R = reason S = suffix T = game.info.turn Y = game.info.year

Examples: 'freeciv-T%04T-Y%+04Y-R' => 'freeciv-T0099-Y-0050-manual' => 'freeciv-T0100-Y00001-auto'

Returns the number of characters written, or the number of characters that would have been written if truncation occurs.

NB: If you change the format definition, be sure to update the above function comment and the help text for the 'savename' setting.

Definition at line 797 of file game.c.

Referenced by mapimg_colortest(), mapimg_create(), save_game(), save_game_auto(), and savename_validate().

## ◆ initialize_globals()

void initialize_globals | ( | void |  | ) |

Initialize wonder information.

Definition at line 689 of file game.c.

Referenced by sg_load_players(), and sg_load_players().

## ◆ is_player_phase()

bool is_player_phase | ( | const struct player * | pplayer,
|  | int | phase
| ) |  |

Return TRUE if it is this player's phase. NB: The meaning of the 'phase' argument must match its use in the function begin_turn() in server/srv_main.c. NB: The phase mode PMT_TEAMS_ALTERNATE assumes that every player is on a team, i.e. that pplayer->team is never NULL.

Definition at line 713 of file game.c.

Referenced by begin_phase(), blink_turn_done_button(), can_end_turn(), handle_start_phase(), handle_unit_orders(), handle_unit_packet_common(), player_set_to_ai_mode(), plrdlg_col_state(), and unit_focus_advance().

## ◆ is_ruleset_compat_mode()

static bool is_ruleset_compat_mode | ( | void |  | ) |

inlinestatic

Get ruleset compat mode indicator

Definition at line 362 of file game.h.

Referenced by gen_action_name_update_cb(), and unit_type_flag_id_name_update_cb().

## ◆ population_to_text()

const char * population_to_text | ( | int | thousand_citizen | ) |

Return a prettily formatted string containing the population text. The population is passed in as the number of citizens, in unit (tens/hundreds/thousands...) defined in cities.ruleset.

Definition at line 740 of file game.c.

Referenced by city_dialog_update_title(), get_info_label_text(), get_info_label_text_popup(), popup_city_cma_dialog(), rebuild_citydlg_title_str(), show_new_turn_info(), update_info_label(), and city_dialog::update_title().

## ◆ set_ruleset_compat_mode()

static void set_ruleset_compat_mode | ( | bool | active | ) |

inlinestatic

Set ruleset compat mode indicator

Definition at line 354 of file game.h.

Referenced by load_rulesets().

## ◆ user_flag_free()

void user_flag_free | ( | struct user_flag * | flag | ) |

Free user flag.

Definition at line 839 of file game.c.

Referenced by extra_flags_free(), impr_flags_free(), unit_class_flags_free(), unit_type_flags_free(), user_tech_flags_free(), and user_terrain_flags_free().

## ◆ user_flag_init()

void user_flag_init | ( | struct user_flag * | flag | ) |

Initialize user flag.

Definition at line 830 of file game.c.

Referenced by user_extra_flags_init(), user_impr_flags_init(), user_tech_flags_init(), user_terrain_flags_init(), user_unit_class_flags_init(), and user_unit_type_flags_init().

## Variable Documentation

## ◆ _ruleset_compat_mode

bool _ruleset_compat_mode

extern

Definition at line 67 of file game.c.

Referenced by is_ruleset_compat_mode(), and set_ruleset_compat_mode().

## ◆ game

struct civ_game game

extern

Definition at line 62 of file game.c.

Referenced by a_connection_exists(), achievement_by_number(), action_dice_roll_initial_odds(), action_hard_reqs_actor(), action_target_neg_util(), actres_possible(), tab_achievement::add_now(), tab_counter::add_now(), tab_extras::add_now(), tab_good::add_now(), tab_gov::add_now(), tab_multiplier::add_now(), tab_tech::add_now(), tab_terrains::add_now(), tab_unit::add_now(), tab_building::add_now2(), add_tax_income(), adjust_improvement_wants_by_effects(), adv_best_government(), advance_array_last(), advance_by_number(), advance_count_real(), ai_init(), ai_traits_init(), aifill(), diplo_wdg::all_advances(), announce_player(), api_edit_give_technology(), api_edit_player_give_bulbs(), api_luadata_get_str(), api_methods_city_inspire_partisans(), api_methods_game_ruleset_name(), api_methods_game_rulesetdir(), api_methods_game_turn(), api_methods_game_turn_deprecated(), api_methods_game_year(), api_methods_game_year_fragment(), api_methods_player_tech_bulbs(), api_methods_player_tech_cost(), assign_player_colors(), auto_workers_player(), autosaves_callback(), autotoggle_action(), away_command(), base_assess_defense_unit(), base_city_celebrating(), base_count(), base_want(), basic_city_style_for_style(), begin_phase(), begin_turn(), blink_turn_done_button(), boot_help_texts(), broadcast_city_info(), build_free_small_wonders(), build_landarea_map(), calendar_text(), can_cities_trade(), can_conn_edit(), can_conn_edit_players_nation(), can_end_turn(), can_exist_at_tile(), can_player_build_unit_direct(), chat_msg_to_all(), chat_msg_to_global_observers(), check_city_migrations(), check_city_migrations_player(), check_disasters(), check_for_full_turn_done(), check_for_game_over(), check_leaving_edit_mode(), check_player_or_user_name(), check_terrain_change(), choice_is_promising(), choose_tech(), choose_tech_to_steal(), citizen_convert_check(), citizen_happiness_nationality(), citizen_luxury_happy(), citizens_convert(), citizens_convert_conquest(), citizens_count(), citizens_init(), citizens_nation_add(), citizens_nation_get(), citizens_nation_set(), citizens_print(), citizens_unit_nationality(), citizens_update(), city_add_improvement(), city_build_building(), city_build_free_buildings(), city_build_unit(), city_built_last_turn(), city_can_buy(), city_counters_refresh(), city_create_unit(), city_desirability(), city_destroy_callback(), city_dialog_update_information(), city_dialog_update_information(), city_distribute_surplus_shields(), city_from_great_wonder(), city_gold_worth(), city_granary_size(), city_had_recent_plague(), city_happy(), city_history_gain(), city_illness_calc(), city_illness_strike(), city_incite_cost(), city_increase_size(), city_map_update_radius_sq(), city_migration_score(), city_pollution_types(), city_populate(), city_rapture_grow(), city_style(), city_style_by_rule_name(), city_style_by_translated_name(), city_styles_alloc(), city_styles_free(), city_support(), city_tile_output(), city_waste(), citymindist_prevents_city_on_tile(), cityresult_fill(), cityresult_new(), civil_war(), civil_war_possible(), civil_war_triggered(), clause_enabled(), clear_worker_task(), client_can_pick_nation(), client_exit(), client_game_free(), client_main(), client_remove_all_cli_conn(), client_remove_cli_conn(), close_connection(), close_connections_and_socket(), edit_extra::closeEvent(), edit_terrain::closeEvent(), cmd_reply_line(), cmdlevel_command(), collect_ransom(), combat_veterans(), compat_load_030300(), con_handle_log(), conn_by_number(), conn_by_user(), conn_by_user_prefix(), conn_is_kicked(), connection_accessor(), connection_attach_real(), connection_detach(), connectmsg_command(), contemplate_new_city(), count_voters(), counter_by_id(), counter_by_rule_name(), counter_by_translated_name(), counters_free(), counters_init(), cr_entry_plague_risk(), gov_menu::create(), create_advances_list(), create_and_append_happiness_page(), create_animals(), create_barbarian_player(), create_city(), create_city_virtual(), create_clause_menu(), create_command_newcomer(), create_command_pregame(), create_conn_menu(), create_event(), current_nationset(), current_turn_timeout(), cut_lagging_connection(), dai_build_adv_adjust(), dai_calc_data(), dai_choose_diplomat_offensive(), dai_choose_trade_route(), dai_diplomacy_actions(), dai_effect_value(), dai_go_to_war(), dai_goldequiv_clause(), dai_goldequiv_tech(), dai_is_unit_tired_waiting_boat(), dai_manage_cities(), dai_manage_government(), dai_manage_taxes(), dai_military_rampage(), dai_share(), dai_tech_base_want(), dai_treaty_evaluate(), dai_unit_defense_desirability(), debug_command(), destroy_extra(), diplomacy_dialog_tech_callback(), diplomacy_dialog_tech_callback(), diplomacy_possible(), diplomat_escape_full(), diplomat_get_tech(), diplomat_infiltrate_tile(), diplomat_may_lose_gold(), disaster_by_number(), disaster_count(), do_airline(), do_attack(), do_border_vision_effect(), do_capture_units(), do_city_migration(), do_nuke_tile(), do_tech_parasite_effects(), do_unit_establish_trade(), do_unit_upgrade(), do_upgrade_effects(), domestic_advisor_choose_build(), edit_extra::edit_extra(), edit_mode_callback(), edit_terrain::edit_terrain(), edithand_send_initial_packets(), editor_tool_is_usable(), end_command(), end_phase(), end_turn(), endturn_callback(), establish_new_connection(), evaluate_city_name_priority(), evaluate_solution(), event_cache_add_for_all(), event_cache_add_for_global_observers(), event_cache_add_for_player(), event_cache_add_for_players(), event_cache_data_new(), event_cache_match(), event_cache_remove_old(), expl_act_not_enabl(), extra_count(), extras_free(), extviewer_view_cell_toggled(), fill_basic_base_sprite_array(), fill_basic_road_sprite_array(), fill_city_overlays_sprite_array(), fill_grid_sprite_array(), final_ruleset_adjustments(), find_city_or_settler_near_tile(), find_dispersed_position(), first_timeout_action(), fit_nationset_to_players(), flush_packets(), tab_misc::flush_widgets(), food_starvation(), found_new_tech(), game_advance_year(), game_defaults(), game_map_init(), game_next_year(), game_remove_unit(), game_ruleset_free(), game_ruleset_init(), game_was_started(), generate_save_name(), generator_validate(), get_airlift_text(), get_caravan_enter_city_trade_bonus(), get_city_dialog_airlift_text(), get_city_dialog_airlift_value(), get_city_dialog_illness_text(), get_economy_report_data(), get_entertainers(), get_global_warming_tooltip(), get_info_label_text(), get_info_label_text_popup(), get_modified_firepower(), get_nuclear_winter_tooltip(), get_player_or_user_name(), get_settlers(), get_tax_rates(), get_timeout_label_text(), get_trade_illness(), get_unit_info_label_text2(), get_user_meta_message_string(), give_immediate_free_tech(), give_initial_techs(), give_midgame_initial_units(), global_warming_scaled(), goods_by_number(), government_by_number(), government_change(), government_count(), governments_alloc(), governments_free(), great_wonder_is_available(), great_wonder_is_built(), great_wonder_is_destroyed(), great_wonder_owner(), handle_achievement_info(), handle_calendar_info(), handle_city_nationalities(), handle_city_short_info(), handle_client_info(), handle_conn_info(), handle_diplomacy_accept_treaty_req(), handle_edit_city(), handle_edit_city_create(), handle_edit_game(), handle_edit_mode(), handle_edit_player(), handle_edit_player_create(), handle_edit_player_vision(), handle_edit_scenario_desc(), handle_edit_startpos(), handle_edit_startpos_full(), handle_edit_tile_extra(), handle_edit_tile_terrain(), handle_edit_toggle_fogofwar(), handle_edit_unit_create(), handle_end_phase(), handle_end_turn(), handle_event(), handle_game_info(), handle_game_load(), handle_login_request(), handle_nation_select_req(), handle_new_year(), handle_player_change_government(), handle_player_info(), handle_player_phase_done(), handle_ruleset_city(), handle_ruleset_control(), handle_ruleset_description_part(), handle_ruleset_game(), handle_ruleset_music(), handle_ruleset_summary(), handle_ruleset_tech(), handle_rulesets_ready(), handle_save_scenario(), handle_scenario_description(), handle_scenario_info(), handle_set_topology(), handle_spaceship_launch(), handle_start_phase(), handle_stdin_input_real(), handle_tile_info(), handle_timeout_info(), handle_unit_change_activity(), handle_unit_orders(), handle_unit_packet_common(), helptext_advance(), helptext_building(), helptext_extra(), helptext_government(), helptext_nation(), helptext_unit(), historian_generic(), img_createmap(), img_new(), impr_base_build_shield_cost(), impr_build_shield_cost(), impr_estimate_build_shield_cost(), impr_sell_gold(), improvement_array_first(), improvement_array_last(), improvement_count(), increase_timeout_because_unit_moved(), init_connections(), init_game_seed(), init_government_of_nation(), init_new_game(), init_tech(), initialize_globals(), insert_generated_text(), is_age_req_active(), is_allowed_city_name(), is_allowed_to_take(), is_first_access_level_taken(), is_form_age_req_active(), is_mincalfrag_req_active(), is_mintechs_req_active(), is_minyear_req_active(), is_plain_public_message(), is_player_phase(), is_stack_vulnerable(), is_tech_req_active(), is_tired_attack(), is_universal_needed(), is_valid_start_pos(), key_editor_toggle(), kick_command(), kill_player(), ruledit_gui::launch_now(), load_building_names(), load_city_name_list(), load_city_sprite(), load_command(), load_game_names(), load_government_names(), load_nation_names(), load_ruleset_actions(), load_ruleset_cities(), load_ruleset_game(), load_ruleset_governments(), load_ruleset_nations(), load_ruleset_styles(), load_ruleset_techs(), load_ruleset_terrain(), load_ruleset_units(), load_rulesetdir(), load_rulesets(), load_style_names(), load_tech_names(), load_terrain_names(), load_unit_names(), log_civ_score_now(), lose_tech(), lost_connection_to_client(), lsend_vote_new(), lsend_vote_remove(), lsend_vote_resolve(), lsend_vote_update(), main(), main(), make_contact(), make_history_report(), manual_command(), manual_extras(), manual_governments(), manual_improvements(), manual_start(), manual_techs(), manual_terrain(), manual_units(), map_calculate_borders(), map_change_seen(), map_claim_base(), map_claim_border(), map_claim_border_ownership(), map_update_border(), mapimg_command(), mapimg_create(), mr_menu::menus_sensitive(), min_food_surplus_for_fastest_growth(), multiplier_by_number(), multiplier_can_be_changed(), multiplier_count(), music_style_by_number(), musicset_suggestion_callback(), musicset_suggestion_response(), name_and_sort_items(), nation_by_number(), nation_count(), nation_group_by_number(), nation_group_new(), nation_has_initial_tech(), nation_history_gain(), plr_widget::nation_selected(), nation_set_by_number(), nation_set_new(), nations_alloc(), nations_free(), nationset_action(), notify_conn(), notify_conn_early(), notify_conn_packet(), notify_team(), nuclear_winter_scaled(), objtype_get_object_from_id(), package_and_send_worker_tasks(), package_city(), package_conn_info(), package_event_full(), package_player_info(), pf_attack_possible(), pf_get_move_scope(), phasemode_help(), pick_a_nation(), pick_free_tech(), pick_random_tech_to_lose(), place_starting_unit(), player_angry_citizens(), player_can_place_extra(), player_can_see_city_externals(), player_color_changeable(), player_get_expected_income(), player_has_really_useful_tech_parasite(), player_info_thaw(), player_loot_player(), player_mood(), player_preferred_color(), player_restore_units(), player_set_to_ai_mode(), player_set_under_human_control(), player_tech_upkeep(), player_tile_init(), player_update_last_war_action(), playercolor_add(), playercolor_count(), playercolor_free(), playercolor_get(), playercolor_init(), playernation_command(), plrdlg_col_state(), population_to_text(), popup_add_menu(), popup_conn_list_dialog(), popup_diplomatic_objects(), popup_government_dialog(), popup_info_text(), popup_musicset_suggestion_dialog(), popup_soundset_suggestion_dialog(), popup_tileset_suggestion_dialog(), property_editor_reload(), qtg_real_science_report_dialog_update(), random_movements(), rank_users(), raze_city(), real_city_dialog_refresh(), real_conn_list_dialog_update(), real_menus_init(), real_menus_update(), real_output_window_append(), real_set_client_page(), real_timer_callback(), really_close_connections(), really_handle_city_buy(), redraw_info_city_dialog(), redraw_unit_info_label(), reestablish_city_trade_routes(), tab_misc::refresh(), tab_misc::refresh_stats(), reload_rulesets_settings(), remove_city(), remove_player_command(), remove_player_from_maps(), report_demographics(), report_final_scores(), report_top_cities(), request_unit_pillage(), research_apply_penalty(), research_get(), research_get_reachable_rreqs(), research_goal_bulbs_required(), research_invention_set(), research_invention_state(), research_iter_init(), research_name_translation(), research_player_iter_init(), research_pretty_name(), research_rule_name(), research_total_bulbs_required(), researches_init(), reset_all_start_commands(), reset_command(), restrict_infra(), revolentype_length(), revolution_length(), road_count(), rs_max_city_radius_sq(), tab_misc::ruleset_loaded(), ruledit_gui::rulesetdir_given(), sanity_check_metadata(), sanity_check_req_individual(), sanity_check_ruleset_data(), save_actions_ruleset(), save_all_map_images(), save_cities_ruleset(), save_game(), save_game_auto(), save_game_ruleset(), save_governments_ruleset(), mr_menu::save_image(), save_luadata(), save_nation(), save_nations_ruleset(), tab_misc::save_now(), save_styles_ruleset(), save_techs_ruleset(), save_units_ruleset(), scan_score_log(), science_dialog_text(), see_combat(), sell_random_unit(), send_all_known_tiles(), send_city_info(), send_city_info_at_tile(), send_city_turn_notifications(), send_combat(), send_conn_info_arg(), send_current_history_report(), send_delegation_info(), send_game_info(), send_packet_data(), send_pending_events(), send_ping_times_to_all(), send_player_diplstate_c_real(), send_player_info_c_real(), send_player_remove_info_c(), send_research_info(), send_ruleset_cities(), send_ruleset_control(), send_ruleset_game(), send_ruleset_terrain(), send_scenario_description(), send_scenario_info(), send_server_setting(), send_spaceship_info(), send_tile_info(), send_turn_done(), send_unit_info(), send_updated_vote_totals(), send_year_to_clients(), server_accept_connection(), server_ai_level(), server_game_init(), server_make_connection(), server_quit(), server_remove_player(), server_remove_unit_full(), server_sniff_all_input(), set_ai_level(), set_command(), set_default_city_manager(), set_rulesetdir(), set_user_meta_message_string(), setting_is_free_to_change(), settings_game_load(), settings_game_reset(), settings_game_save(), settings_game_start(), settler_map_iterate(), ruledit_gui::setup(), sg_load_game(), sg_load_game(), sg_load_history(), sg_load_history(), sg_load_map(), sg_load_map(), sg_load_map_owner(), sg_load_map_owner(), sg_load_map_startpos(), sg_load_map_startpos(), sg_load_map_tiles_extras(), sg_load_map_tiles_resources(), sg_load_player_cities(), sg_load_player_cities(), sg_load_player_city(), sg_load_player_city_citizens(), sg_load_player_city_citizens(), sg_load_player_main(), sg_load_player_main(), sg_load_player_unit(), sg_load_player_unit(), sg_load_player_vision(), sg_load_player_vision(), sg_load_players(), sg_load_players(), sg_load_players_basic(), sg_load_players_basic(), sg_load_random(), sg_load_researches(), sg_load_ruleset(), sg_load_sanitycheck(), sg_load_sanitycheck(), sg_load_savefile(), sg_load_savefile(), sg_load_scenario(), sg_load_scenario(), sg_load_settings(), sg_load_settings(), sg_save_game(), sg_save_history(), sg_save_map(), sg_save_map_known(), sg_save_map_startpos(), sg_save_map_tiles_extras(), sg_save_player_cities(), sg_save_player_units(), sg_save_player_vision(), sg_save_random(), sg_save_researches(), sg_save_savefile(), sg_save_scenario(), show_connections(), diplo_wdg::show_menu(), show_new_turn_info(), show_players(), show_ruleset_info(), show_settings(), show_tech_gained_dialog(), fc_client::slot_pregame_observe(), soundset_suggestion_callback(), soundset_suggestion_response(), spaceship_calc_derived(), specialist_by_number(), specialist_count(), split_player(), spy_nuke_city(), spy_poison(), spy_steal_popup_shared(), spy_steal_shared(), spy_steal_some_maps(), srv_init(), srv_main(), srv_prepare(), srv_ready(), srv_running(), srv_scores(), start_command(), start_game(), fc_client::start_page_menu(), start_revolution(), start_turn_change_wait(), steal_a_tech(), style_by_number(), style_count(), suggest_tech_exchange(), summon_barbarians(), surrender_command(), switch_city_callback(), take_command(), tdc_plr_get(), tech_can_be_stolen(), tech_class_by_number(), tech_class_by_rule_name(), tech_transfer(), techs_have_fixed_costs(), techs_precalc_data(), terrain_array_first(), terrain_array_last(), terrain_by_number(), terrain_count(), test_unit_can_airlift_to(), texai_check_messages(), text_happiness_cities(), text_happiness_nationality(), textcalfrag(), textyear(), tile_border_source_radius_sq(), tile_border_source_strength(), tile_data_cache_new(), tile_set_owner(), tileset_background_init(), tileset_ruleset_reset(), tileset_setup_city_tiles(), tileset_suggestion_callback(), tileset_suggestion_response(), tilespec_reread(), timeout_action(), timeout_callback(), timeout_command(), timing_log_real(), toggle_ai_command(), toggle_ai_player_direct(), topology_action(), trade_base_between_cities(), trade_from_route(), transfer_city(), transform_unit(), tri_req_active_turns(), try_summon_barbarians(), turns_to_tech_loss(), uclass_by_number(), uclass_count(), unit_attack_civilian_casualties(), unit_attack_units_at_tile_result(), unit_being_aggressive(), unit_bombard_rate(), unit_bribe_cost(), unit_can_do_action_now(), unit_class_array_first(), unit_class_array_last(), unit_current_goods(), unit_description(), unit_did_action(), unit_focus_advance(), unit_gain_hitpoints(), unit_get_goods(), unit_move(), unit_move_consequences(), unit_move_to_tile_test(), unit_nuke(), unit_order_list_is_sane(), unit_survive_autoattack(), unit_type_array_first(), unit_type_array_last(), unit_virtual_create(), units_contain_cityfounder(), unitwaittime_callback(), universal_value_initial(), unleash_barbarians(), untargeted_revolution_allowed(), gov_menu::update(), update_bulbs(), fc_client::update_buttons(), update_city_activity(), update_diplomatics(), city_dialog::update_info_label(), fc_client::update_info_label(), update_intel_wonder_dialog(), update_national_activities(), update_player_tile_last_seen(), update_revolution(), fc_client::update_start_page(), update_start_page_buttons(), update_tile_knowledge(), update_timeout(), chat_listener::update_word_list(), utype_build_shield_cost(), utype_build_shield_cost_base(), utype_by_number(), utype_count(), utype_is_cityfounder(), utype_veteran_system(), victory_enabled(), wipe_unit_full(), wonder_built(), wonder_destroyed(), wonder_visible_to_player(), world_peace_update(), wrap_action(), write_init_script(), and year_suffix().