139 " at (%d,%d) unit %d, %s %s home (%d,%d) city %d, %s %s",
149 log_debug(
"game_remove_unit() at (%d,%d) unit %d, %s %s home %d",
156 log_error(
"game_remove_unit() at (%d,%d) unit %d, %s %s home %d invalid",
184 if (
NULL != powner) {
190 log_debug(
"game_remove_city() virtual city %d, %s",
194 log_debug(
"game_remove_city() at (%d,%d) city %d, %s %s",
816 log_debug(
"save name generated from '%s': %s", format,
buf);
void achievements_free(void)
void achievements_init(void)
#define CALL_FUNC_EACH_AI(_func,...)
void city_styles_free(void)
const char * city_name_get(const struct city *pcity)
int city_population(const struct city *pcity)
void free_city_map_index(void)
int city_map_radius_sq_get(const struct city *pcity)
void destroy_city_virtual(struct city *pcity)
struct city * city_list_find_name(struct city_list *This, const char *name)
#define city_list_iterate(citylist, pcity)
#define city_tile(_pcity_)
#define city_owner(_pcity_)
#define city_list_iterate_end
#define city_tile_iterate(_nmap, _radius_sq, _city_tile, _tile)
#define city_tile_iterate_end
#define city_built_iterate(_pcity, _p)
#define city_built_iterate_end
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
void clause_infos_init(void)
void clause_infos_free(void)
void disaster_types_init(void)
void disaster_types_free(void)
void ruleset_cache_free(void)
void ruleset_cache_init(void)
static bool is_server(void)
#define MAX_CALENDAR_FRAGMENTS
#define IDENTITY_NUMBER_ZERO
const char * population_to_text(int thousand_citizen)
void user_flag_init(struct user_flag *flag)
void user_flag_free(struct user_flag *flag)
void game_ruleset_init(void)
bool is_player_phase(const struct player *pplayer, int phase)
static void game_defaults(bool keep_ruleset_value)
static char * year_suffix(void)
int current_turn_timeout(void)
struct city * game_city_by_name(const char *name)
void game_ruleset_free(void)
void game_init(bool keep_ruleset_value)
bool _ruleset_compat_mode
void game_remove_unit(struct world *gworld, struct unit *punit)
struct unit * game_unit_by_number(int id)
int civ_population(const struct player *pplayer)
void game_remove_city(struct world *gworld, struct city *pcity)
void initialize_globals(void)
int generate_save_name(const char *format, char *buf, int buflen, const char *reason)
struct city * game_city_by_number(int id)
#define GAME_DEFAULT_TECHPENALTY
#define GAME_DEFAULT_SKILL_LEVEL
#define GAME_DEFAULT_KILLSTACK
#define GAME_DEFAULT_INFRA
#define GAME_DEFAULT_LUA_TIMEOUT
#define GAME_DEFAULT_REVOLENTYPE
#define GAME_DEFAULT_AUTO_AI_TOGGLE
#define GAME_DEFAULT_CARAVAN_BONUS_STYLE
#define GAME_DEFAULT_TIMEOUTINTINC
#define GAME_DEFAULT_SCORETURN
#define GAME_DEFAULT_TCPTIMEOUT
#define GAME_DEFAULT_EVENT_CACHE_INFO
#define GAME_DEFAULT_MGR_FOODNEEDED
#define GAME_DEFAULT_TECHLOST_DONOR
#define GAME_DEFAULT_TIMEOUTINT
#define GAME_DEFAULT_ALLOWED_CITY_NAMES
#define GAME_DEFAULT_SCORELOG
#define GAME_DEFAULT_OCCUPYCHANCE
#define GAME_DEFAULT_GLOBAL_WARMING_PERCENT
#define GAME_DEFAULT_TRADING_TECH
#define GAME_DEFAULT_SAVETURNS
#define GAME_DEFAULT_BORDERS
#define GAME_DEFAULT_AIRLIFTINGSTYLE
#define GAME_DEFAULT_SPACESHIP_TRAVEL_PCT
#define GAME_DEFAULT_TOP_CITIES_COUNT
#define GAME_DEFAULT_KILLUNHOMED
#define GAME_DEFAULT_SCIENCEBOX
#define GAME_DEFAULT_MGR_WORLDCHANCE
#define GAME_DEFAULT_ONSETBARBARIAN
#define GAME_DEFAULT_KILLCITIZEN
#define GAME_DEFAULT_SHIELDBOX
#define GAME_DEFAULT_MAXCONNECTIONSPERHOST
#define GAME_DEFAULT_INCITE_GOLD_CAPT_CHANCE
#define GAME_DEFAULT_DEMOGRAPHY
#define GAME_DEFAULT_FULLTRADESIZE
#define GAME_DEFAULT_TIMEOUTINCMULT
#define GAME_DEFAULT_CELEBRATESIZE
#define GAME_DEFAULT_RAPTUREDELAY
#define GAME_DEFAULT_REVOLUTION_LENGTH
#define GAME_DEFAULT_MGR_TURNINTERVAL
#define GAME_DEFAULT_TIMEOUTINC
#define GAME_DEFAULT_START_UNITS
#define GAME_DEFAULT_ALLOW_TAKE
#define GAME_DEFAULT_MIN_PLAYERS
#define GAME_DEFAULT_RULESETDIR
#define GAME_DEFAULT_AUTOATTACK
#define GAME_DEFAULT_REVEALMAP
#define GAME_DEFAULT_TEAM_POOLED_RESEARCH
#define GAME_DEFAULT_SEED
#define GAME_DEFAULT_HOMECAUGHTUNITS
#define GAME_DEFAULT_NETWAIT
#define GAME_DEFAULT_KICK_TIME
#define GAME_DEFAULT_PLRCOLORMODE
#define GAME_DEFAULT_DIPLCHANCE
#define GAME_DEFAULT_RAZECHANCE
#define GAME_DEFAULT_START_YEAR
#define GAME_DEFAULT_INCITE_GOLD_LOSS_CHANCE
#define GAME_DEFAULT_TIMEOUTCOUNTER
#define GAME_DEFAULT_TRADING_CITY
#define GAME_DEFAULT_FOODBOX
#define GAME_DEFAULT_COMPRESS_TYPE
#define GAME_DEFAULT_PINGTIMEOUT
#define GAME_DEFAULT_TRADE_REVENUE_STYLE
#define GAME_DEFAULT_SAVEPALACE
#define GAME_DEFAULT_GLOBAL_WARMING
#define GAME_DEFAULT_TECHLOST_RECV
#define GAME_DEFAULT_NOTRADESIZE
#define GAME_DEFAULT_COMPRESS_LEVEL
#define GAME_DEFAULT_NUCLEAR_WINTER_PERCENT
#define GAME_DEFAULT_TRADING_GOLD
#define GAME_DEFAULT_TRAIT_DIST_MODE
#define GAME_DEFAULT_NUCLEAR_WINTER
#define GAME_DEFAULT_FREECOST
#define GAME_DEFAULT_MAX_PLAYERS
#define GAME_DEFAULT_CITYMINDIST
#define GAME_DEFAULT_PHASE_MODE
#define GAME_DEFAULT_AIFILL
#define GAME_DEFAULT_MULTIRESEARCH
#define GAME_DEFAULT_CONQUERCOST
#define GAME_DEFAULT_TIMEOUT
#define GAME_DEFAULT_CONTACTTURNS
#define GAME_DEFAULT_SCORELOGLEVEL
#define GAME_DEFAULT_TECHLEVEL
#define GAME_DEFAULT_DISASTERS
#define GAME_DEFAULT_GOLD
#define GAME_DEFAULT_MIGRATION
#define GAME_DEFAULT_NATURALCITYNAMES
#define GAME_DEFAULT_EVENT_CACHE_TURNS
#define GAME_DEFAULT_VICTORY_CONDITIONS
#define GAME_DEFAULT_FOGGEDBORDERS
#define GAME_DEFAULT_UNITWAITTIME
#define GAME_DEFAULT_TIMEOUTADDEMOVE
#define GAME_DEFAULT_DISPERSION
#define GAME_DEFAULT_EVENT_CACHE_CHAT
#define GAME_DEFAULT_DIPLOMACY
#define GAME_DEFAULT_MGR_DISTANCE
#define GAME_DEFAULT_TURNBLOCK
#define GAME_DEFAULT_PINGTIME
#define GAME_DEFAULT_AQUEDUCTLOSS
#define GAME_DEFAULT_TRADEMINDIST
#define GAME_DEFAULT_ANGRYCITIZEN
#define GAME_DEFAULT_BARBARIANRATE
#define GAME_DEFAULT_HAPPYBORDERS
#define GAME_DEFAULT_END_TURN
#define GAME_DEFAULT_DIPLGOLDCOST
#define GAME_DEFAULT_END_SPACESHIP
#define GAME_DEFAULT_EVENT_CACHE_MAX_SIZE
#define GAME_DEFAULT_SAVE_NAME
#define GAME_DEFAULT_MGR_NATIONCHANCE
#define GAME_DEFAULT_FOGOFWAR
#define GAME_DEFAULT_DIPLBULBCOST
#define GAME_DEFAULT_RESTRICTINFRA
#define GAME_DEFAULT_CIVILWARSIZE
void governments_free(void)
void idex_free(struct world *iworld)
struct city * idex_lookup_city(struct world *iworld, int id)
void idex_unregister_city(struct world *iworld, struct city *pcity)
void idex_init(struct world *iworld)
struct unit * idex_lookup_unit(struct world *iworld, int id)
void idex_unregister_unit(struct world *iworld, struct unit *punit)
void improvements_init(void)
void user_impr_flags_init(void)
Impr_type_id improvement_index(const struct impr_type *pimprove)
bool is_wonder(const struct impr_type *pimprove)
bool is_great_wonder(const struct impr_type *pimprove)
void impr_flags_free(void)
void improvements_free(void)
#define fc_assert_msg(condition, message,...)
#define fc_assert_ret_val(condition, val)
#define log_debug(message,...)
#define log_error(message,...)
void map_init(struct civ_map *imap, bool server_side)
void multipliers_free(void)
void multipliers_init(void)
const char * nation_rule_name(const struct nation_type *pnation)
struct nation_type * nation_of_unit(const struct unit *punit)
struct nation_type * nation_of_player(const struct player *pplayer)
struct nation_type * nation_of_city(const struct city *pcity)
void nation_sets_groups_free(void)
void nation_sets_groups_init(void)
int player_number(const struct player *pplayer)
void player_slots_free(void)
void player_ruleset_close(struct player *pplayer)
void player_clear(struct player *pplayer, bool full)
void player_slots_init(void)
#define players_iterate_end
#define players_iterate(_pplayer)
void secfile_destroy(struct section_file *secfile)
void universal_found_functions_init(void)
void researches_init(void)
void researches_free(void)
void rgbcolor_destroy(struct rgbcolor *prgbcolor)
int fc_vsnprintcf(char *buf, size_t buf_len, const char *format, const struct cf_sequence *sequences, size_t sequences_num)
const char * big_int_to_text(unsigned int mantissa, unsigned int exponent)
static struct cf_sequence cf_end(void)
static void cf_int_seq(char letter, int value, struct cf_sequence *out)
static struct cf_sequence cf_str_seq(char letter, const char *value)
void specialists_free(void)
void specialists_init(void)
struct unit_list * units_supported
enum city_names_mode allowed_city_names
int incite_gold_capt_chance
struct rgbcolor_list * plr_colors
const char ** allowed_govs
void(* unit_deallocate)(int unit_id)
enum barbarians_rate barbarianrate
struct rgbcolor * plr_bg_color
char start_units[MAX_LEN_STARTUNIT]
struct civ_game::@31::@35::@36 event_cache
struct packet_scenario_description scenario_desc
char connectmsg[MAX_LEN_MSG]
struct packet_ruleset_control control
struct player * random_move_time
int incite_gold_loss_chance
struct civ_game::@31::@35::@37 save_options
enum plrcolor_mode plrcolormode
char demography[MAX_LEN_DEMOGRAPHY]
struct packet_game_info info
enum scorelog_level scoreloglevel
char rulesetdir[MAX_LEN_NAME]
int additional_phase_seconds
struct section_file * luadata
int maxconnectionsperhost
struct packet_scenario_info scenario
int nuclear_winter_percent
const char ** allowed_terrains
struct civ_game::@31::@35::@40 ruledit
struct civ_game::@33 callbacks
char * ruleset_description
const char ** allowed_styles
char save_name[MAX_LEN_NAME]
enum fz_method save_compress_type
enum trait_dist_mode trait_dist
struct civ_game::@31::@35 server
size_t embedded_nations_count
char * ruleset_capabilities
struct civ_game::@31::@35::@38 meta_info
char allow_take[MAX_LEN_ALLOW_TAKE]
struct veteran_system * veteran
int global_warming_percent
struct packet_calendar_info calendar
struct government * government_during_revolution
char positive_year_label[MAX_LEN_NAME]
char negative_year_label[MAX_LEN_NAME]
char calendar_fragment_name[MAX_CALENDAR_FRAGMENTS][MAX_LEN_NAME]
enum borders_mode borders
bool team_pooled_research
enum happyborders_type happyborders
Government_type_id government_during_revolution_id
enum diplomacy_mode diplomacy
enum trade_revenue_style trade_revenue_style
int great_wonder_owners[B_LAST]
bool global_advances[A_LAST]
enum airlifting_style airlifting_style
enum ai_level skill_level
enum revolen_type revolentype
enum phase_mode_type phase_mode
enum caravan_bonus_style caravan_bonus_style
bv_actions diplchance_initial_odds
enum victory_condition_type victory_conditions
Government_type_id default_government_id
char preferred_soundset[MAX_LEN_NAME]
char preferred_tileset[MAX_LEN_NAME]
int num_achievement_types
char preferred_musicset[MAX_LEN_NAME]
char description[MAX_LEN_CONTENT]
bool allow_ai_type_fallback
char authors[MAX_LEN_PACKET/3]
struct city_list * cities
void music_styles_free(void)
int fc_snprintf(char *str, size_t n, const char *format,...)
#define sz_strlcpy(dest, src)
void team_slots_free(void)
int team_number(const struct team *pteam)
void team_slots_init(void)
void tech_classes_init(void)
void user_tech_flags_init(void)
void user_tech_flags_free(void)
void user_terrain_flags_init(void)
void user_terrain_flags_free(void)
void tile_set_worked(struct tile *ptile, struct city *pcity)
#define tile_worked(_tile)
void trade_route_types_init(void)
void unit_virtual_destroy(struct unit *punit)
void unit_types_init(void)
void user_unit_type_flags_init(void)
void unit_class_flags_free(void)
const char * unit_rule_name(const struct unit *punit)
void unit_types_free(void)
void veteran_system_destroy(struct veteran_system *vsystem)
void unit_classes_free(void)
void unit_type_flags_free(void)
void user_unit_class_flags_init(void)
void unit_classes_init(void)
void role_unit_precalcs_free(void)