Freeciv-3.3
Loading...
Searching...
No Matches
Data Fields
city Struct Reference

#include <city.h>

Data Fields

charname
 
struct tiletile
 
struct playerowner
 
struct playeroriginal
 
int id
 
int style
 
enum capital_type capital
 
enum city_acquire_type acquire_t
 
citizens size
 
citizens feel [CITIZEN_LAST][FEELING_LAST]
 
citizens specialists [SP_MAX]
 
citizens martial_law
 
citizens unit_happy_upkeep
 
citizensnationality
 
struct trade_route_listroutes
 
struct tile_cachetile_cache
 
int tile_cache_radius_sq
 
int surplus [O_LAST]
 
int waste [O_LAST]
 
int unhappy_penalty [O_LAST]
 
int prod [O_LAST]
 
int citizen_base [O_LAST]
 
int usage [O_LAST]
 
int bonus [O_LAST]
 
int abs_bonus [O_LAST]
 
int food_stock
 
int shield_stock
 
int pollution
 
int illness_trade
 
int turn_plague
 
int city_radius_sq
 
int airlift
 
bool did_buy
 
bool did_sell
 
bool was_happy
 
bool had_famine
 
int anarchy
 
int rapture
 
int turn_founded
 
int turn_last_built
 
int before_change_shields
 
int caravan_shields
 
int disbanded_shields
 
int last_turns_shield_surplus
 
struct built_status built [B_LAST]
 
struct universal production
 
struct universal changed_from
 
struct worklist worklist
 
bv_city_options city_options
 
enum city_wl_cancel_behavior wlcb
 
struct unit_list * units_supported
 
intcounter_values
 
int history
 
struct worker_task_listtask_reqs
 
int steal
 
struct { 
 
   size_t   length 
 
   bool   persistent 
 
   bool   vigilant 
 
   struct unit_order *   orders 
 
rally_point 
 
struct cm_parametercm_parameter
 
union { 
 
   struct { 
 
      float   migration_score 
 
      int   mgr_score_calc_turn 
 
      int   illness 
 
      int   workers_frozen 
 
      enum city_needs_arrange   needs_arrange 
 
      bool   needs_refresh 
 
      bool   synced 
 
      bool   debug 
 
      struct adv_city *   adv 
 
      void *   ais [FREECIV_AI_MOD_LAST
 
      struct vision *   vision 
 
   }   server 
 
   struct { 
 
      bool   occupied 
 
      int   walls 
 
      bool   happy 
 
      bool   unhappy 
 
      int   city_image 
 
      int   culture 
 
      int   buy_cost 
 
      bool   colored 
 
      int   color_index 
 
      struct unit_list *   info_units_supported 
 
      struct unit_list *   info_units_present 
 
      struct unit_list *   collecting_info_units_supported 
 
      struct unit_list *   collecting_info_units_present 
 
      enum city_updates   need_updates 
 
      unsigned char   first_citizen_index 
 
   }   client 
 
};  
 

Detailed Description

Definition at line 317 of file city.h.

Field Documentation

◆ [union]

union { ... } city

◆ abs_bonus

int city::abs_bonus[O_LAST]

Definition at line 361 of file city.h.

◆ acquire_t

enum city_acquire_type city::acquire_t

Definition at line 326 of file city.h.

◆ adv

struct adv_city* city::adv

◆ airlift

int city::airlift

Definition at line 375 of file city.h.

◆ ais

Definition at line 450 of file city.h.

◆ anarchy

int city::anarchy

Definition at line 381 of file city.h.

◆ before_change_shields

int city::before_change_shields

Definition at line 386 of file city.h.

◆ bonus

int city::bonus[O_LAST]

Definition at line 360 of file city.h.

Referenced by get_city_dialog_output_text(), and windfall_benefit().

◆ built

struct built_status city::built[B_LAST]

Definition at line 391 of file city.h.

◆ buy_cost

int city::buy_cost

◆ capital

enum capital_type city::capital

◆ caravan_shields

int city::caravan_shields

Definition at line 387 of file city.h.

◆ changed_from

struct universal city::changed_from

Definition at line 396 of file city.h.

◆ citizen_base

int city::citizen_base[O_LAST]

Definition at line 356 of file city.h.

◆ city_image

int city::city_image

Definition at line 461 of file city.h.

◆ city_options

bv_city_options city::city_options

Definition at line 400 of file city.h.

Referenced by misc_panel_city_dlg_callback().

◆ city_radius_sq

int city::city_radius_sq

Definition at line 372 of file city.h.

Referenced by apply_solution(), and min_food_surplus_for_fastest_growth().

◆ [struct]

struct { ... } city::client

◆ cm_parameter

struct cm_parameter* city::cm_parameter

Definition at line 422 of file city.h.

◆ collecting_info_units_present

struct unit_list* city::collecting_info_units_present

Definition at line 475 of file city.h.

◆ collecting_info_units_supported

struct unit_list* city::collecting_info_units_supported

Definition at line 474 of file city.h.

◆ color_index

int city::color_index

Definition at line 467 of file city.h.

◆ colored

bool city::colored

Definition at line 466 of file city.h.

◆ counter_values

int* city::counter_values

◆ culture

int city::culture

Definition at line 462 of file city.h.

Referenced by city_dialog::update_info_label().

◆ debug

bool city::debug

Definition at line 447 of file city.h.

◆ did_buy

bool city::did_buy

Definition at line 376 of file city.h.

◆ did_sell

bool city::did_sell

Definition at line 377 of file city.h.

Referenced by enable_city_dlg_widgets(), and rebuild_imprm_list().

◆ disbanded_shields

int city::disbanded_shields

Definition at line 388 of file city.h.

◆ feel

Definition at line 330 of file city.h.

◆ first_citizen_index

unsigned char city::first_citizen_index

Definition at line 480 of file city.h.

◆ food_stock

int city::food_stock

Definition at line 364 of file city.h.

Referenced by city_dialog::update_info_label().

◆ had_famine

bool city::had_famine

Definition at line 379 of file city.h.

◆ happy

bool city::happy

Definition at line 459 of file city.h.

Referenced by evaluate_solution().

◆ history

int city::history

Definition at line 407 of file city.h.

◆ id

int city::id

◆ illness

int city::illness

Definition at line 431 of file city.h.

Referenced by city_dialog_update_information(), and city_dialog_update_information().

◆ illness_trade

int city::illness_trade

Definition at line 367 of file city.h.

◆ info_units_present

struct unit_list* city::info_units_present

◆ info_units_supported

struct unit_list* city::info_units_supported

◆ last_turns_shield_surplus

int city::last_turns_shield_surplus

Definition at line 389 of file city.h.

◆ length

size_t city::length

Definition at line 414 of file city.h.

Referenced by sg_load_counters().

◆ martial_law

citizens city::martial_law

Definition at line 335 of file city.h.

◆ mgr_score_calc_turn

int city::mgr_score_calc_turn

Definition at line 429 of file city.h.

◆ migration_score

float city::migration_score

Definition at line 428 of file city.h.

◆ name

char* city::name

◆ nationality

citizens* city::nationality

Definition at line 338 of file city.h.

Referenced by city_build(), and sg_load_player_city_citizens().

◆ need_updates

enum city_updates city::need_updates

Definition at line 478 of file city.h.

◆ needs_arrange

enum city_needs_arrange city::needs_arrange

Definition at line 438 of file city.h.

◆ needs_refresh

bool city::needs_refresh

Definition at line 442 of file city.h.

◆ occupied

bool city::occupied

Definition at line 457 of file city.h.

◆ orders

struct unit_order* city::orders

Definition at line 419 of file city.h.

◆ original

struct player* city::original

Definition at line 321 of file city.h.

Referenced by vision_site_new().

◆ owner

struct player* city::owner

Definition at line 320 of file city.h.

Referenced by enable_city_dlg_widgets(), and tile_virtual_new().

◆ persistent

bool city::persistent

Definition at line 416 of file city.h.

◆ pollution

int city::pollution

Definition at line 366 of file city.h.

Referenced by city_dialog::update_info_label().

◆ prod

int city::prod[O_LAST]

Definition at line 355 of file city.h.

Referenced by city_dialog::update_info_label().

◆ production

struct universal city::production

◆ [struct]

struct { ... } city::rally_point

◆ rapture

int city::rapture

Definition at line 382 of file city.h.

◆ routes

struct trade_route_list* city::routes

Definition at line 341 of file city.h.

Referenced by create_trade_route(), and reestablish_city_trade_routes().

◆ [struct]

struct { ... } city::server

◆ shield_stock

int city::shield_stock

Definition at line 365 of file city.h.

Referenced by actres_possible(), city_dialog::update_building(), and wonder_benefit().

◆ size

citizens city::size

◆ specialists

citizens city::specialists[SP_MAX]

Definition at line 333 of file city.h.

◆ steal

int city::steal

Definition at line 411 of file city.h.

Referenced by city_dialog::update_info_label().

◆ style

int city::style

Definition at line 324 of file city.h.

Referenced by city_style_name_translation(), and city_style_rule_name().

◆ surplus

int city::surplus[O_LAST]

◆ synced

bool city::synced

Definition at line 445 of file city.h.

◆ task_reqs

struct worker_task_list* city::task_reqs

Definition at line 409 of file city.h.

Referenced by city_map::context_menu().

◆ tile

struct tile* city::tile

◆ tile_cache

struct tile_cache* city::tile_cache

Definition at line 346 of file city.h.

◆ tile_cache_radius_sq

int city::tile_cache_radius_sq

Definition at line 349 of file city.h.

◆ turn_founded

int city::turn_founded

Definition at line 383 of file city.h.

Referenced by city_comp_by_turn_founded().

◆ turn_last_built

int city::turn_last_built

Definition at line 384 of file city.h.

◆ turn_plague

int city::turn_plague

Definition at line 371 of file city.h.

◆ unhappy

bool city::unhappy

Definition at line 460 of file city.h.

◆ unhappy_penalty

int city::unhappy_penalty[O_LAST]

Definition at line 354 of file city.h.

◆ unit_happy_upkeep

citizens city::unit_happy_upkeep

Definition at line 336 of file city.h.

◆ units_supported

struct unit_list* city::units_supported

◆ usage

int city::usage[O_LAST]

Definition at line 357 of file city.h.

◆ vigilant

bool city::vigilant

Definition at line 418 of file city.h.

◆ vision

struct vision* city::vision

Definition at line 452 of file city.h.

◆ walls

int city::walls

Definition at line 458 of file city.h.

◆ was_happy

bool city::was_happy

Definition at line 378 of file city.h.

◆ waste

int city::waste[O_LAST]

Definition at line 353 of file city.h.

Referenced by city_dialog::update_info_label().

◆ wlcb

◆ workers_frozen

int city::workers_frozen

Definition at line 434 of file city.h.

◆ worklist

struct worklist city::worklist

Definition at line 398 of file city.h.