Freeciv21
Develop your civilization from humble roots to a global empire
adv_data Struct Reference

#include <advdata.h>

+ Collaboration diagram for adv_data:

Public Attributes

bool phase_is_initialized
 
int wonder_city
 
enum adv_improvement_status impr_calc [B_LAST]
 
enum req_range impr_range [B_LAST]
 
struct {
   bool   invasions
 
   bool *   continent
 
   bool *   ocean
 
   bool   suicide_attack
 
   int   nuclear
 
   bool   igwall
 
threats
 
struct {
   bool *   ocean
 
   bool *   continent
 
   bool   land_done
 
   bool   sea_done
 
explore
 
struct {
   struct {
      int   coast_strict
 
      int   suicide_attackers
 
      int   paratroopers
 
      int   airliftable
 
      int   byclass [UCL_LAST]
 
      int   upgradeable
 
   }   units
 
   int *   cities
 
   int *   ocean_cities
 
   int   average_production
 
stats
 
struct {
   struct adv_dipl **   adv_dipl_slots
 
   struct player *   spacerace_leader
 
   struct player *   production_leader
 
dipl
 
int num_continents
 
int num_oceans
 
int shield_priority
 
int food_priority
 
int luxury_priority
 
int gold_priority
 
int science_priority
 
int happy_priority
 
int unhappy_priority
 
int angry_priority
 
int pollution_priority
 
int infra_priority
 
std::vector< adv_wantgovernment_want
 
short govt_reeval
 
struct {
   struct {
      struct government *   gov
 
      adv_want   val
 
      int   req
 
   }   govt
 
   struct government *   revolution
 
goal
 
bool wants_science
 
bool celebrate
 
int max_num_cities
 

Detailed Description

Definition at line 41 of file advdata.h.

Member Data Documentation

◆ adv_dipl_slots

struct adv_dipl** adv_data::adv_dipl_slots

Definition at line 92 of file advdata.h.

Referenced by adv_data_close(), and adv_data_init().

◆ airliftable

int adv_data::airliftable

Definition at line 79 of file advdata.h.

◆ angry_priority

int adv_data::angry_priority

Definition at line 109 of file advdata.h.

Referenced by adv_data_phase_init(), and adv_eval_calc_city().

◆ average_production

int adv_data::average_production

Definition at line 88 of file advdata.h.

Referenced by military_amortize().

◆ byclass

int adv_data::byclass[UCL_LAST]

Definition at line 81 of file advdata.h.

◆ celebrate

bool adv_data::celebrate

Definition at line 131 of file advdata.h.

Referenced by adv_data_default(), and dai_manage_taxes().

◆ cities

◆ coast_strict

int adv_data::coast_strict

Definition at line 76 of file advdata.h.

◆ continent

bool* adv_data::continent

◆ 

◆ 

struct { ... } adv_data::explore

◆ food_priority

int adv_data::food_priority

◆ 

struct { ... } adv_data::goal

◆ gold_priority

int adv_data::gold_priority

◆ gov

struct government* adv_data::gov

Definition at line 120 of file advdata.h.

◆ government_want

std::vector<adv_want> adv_data::government_want

Definition at line 114 of file advdata.h.

Referenced by adv_best_government(), adv_data_close(), adv_data_default(), and adv_data_init().

◆ 

struct { ... } adv_data::govt

◆ govt_reeval

short adv_data::govt_reeval

Definition at line 115 of file advdata.h.

Referenced by adv_best_government(), and adv_data_default().

◆ happy_priority

int adv_data::happy_priority

Definition at line 107 of file advdata.h.

Referenced by adv_data_phase_init(), and adv_eval_calc_city().

◆ igwall

bool adv_data::igwall

Definition at line 59 of file advdata.h.

Referenced by adv_data_phase_init(), and dai_effect_value().

◆ impr_calc

enum adv_improvement_status adv_data::impr_calc[B_LAST]

Definition at line 46 of file advdata.h.

Referenced by adv_data_city_impr_calc(), base_want(), and dai_city_want().

◆ impr_range

enum req_range adv_data::impr_range[B_LAST]

◆ infra_priority

int adv_data::infra_priority

Definition at line 111 of file advdata.h.

Referenced by adv_data_phase_init().

◆ invasions

bool adv_data::invasions

Definition at line 54 of file advdata.h.

Referenced by adv_data_phase_init(), and dai_effect_value().

◆ land_done

bool adv_data::land_done

Definition at line 66 of file advdata.h.

Referenced by dai_effect_value().

◆ luxury_priority

int adv_data::luxury_priority

Definition at line 104 of file advdata.h.

Referenced by adv_data_phase_init(), adv_eval_calc_city(), and dai_city_want().

◆ max_num_cities

int adv_data::max_num_cities

Definition at line 134 of file advdata.h.

Referenced by adv_data_default(), adv_data_phase_init(), and domestic_advisor_choose_build().

◆ nuclear

int adv_data::nuclear

Definition at line 58 of file advdata.h.

Referenced by adv_data_phase_init(), and dai_effect_value().

◆ num_continents

int adv_data::num_continents

◆ num_oceans

int adv_data::num_oceans

◆ ocean

bool* adv_data::ocean

Definition at line 56 of file advdata.h.

Referenced by adv_data_phase_done(), adv_data_phase_init(), and dai_effect_value().

◆ ocean_cities

int* adv_data::ocean_cities

Definition at line 87 of file advdata.h.

Referenced by adv_data_phase_done(), and contemplate_terrain_improvements().

◆ paratroopers

int adv_data::paratroopers

Definition at line 79 of file advdata.h.

◆ phase_is_initialized

bool adv_data::phase_is_initialized

Definition at line 43 of file advdata.h.

Referenced by adv_data_get(), adv_data_phase_done(), and adv_data_phase_init().

◆ pollution_priority

int adv_data::pollution_priority

Definition at line 110 of file advdata.h.

Referenced by adv_data_phase_init(), adv_eval_calc_city(), and dai_city_want().

◆ production_leader

struct player* adv_data::production_leader

Definition at line 95 of file advdata.h.

Referenced by adv_data_phase_init(), and dai_effect_value().

◆ req

int adv_data::req

Definition at line 122 of file advdata.h.

◆ revolution

struct government* adv_data::revolution

Definition at line 124 of file advdata.h.

Referenced by adv_best_government(), and dai_manage_government().

◆ science_priority

int adv_data::science_priority

◆ sea_done

bool adv_data::sea_done

Definition at line 67 of file advdata.h.

Referenced by dai_effect_value().

◆ shield_priority

int adv_data::shield_priority

Definition at line 102 of file advdata.h.

Referenced by adv_data_phase_init(), adv_eval_calc_city(), cityresult_fill(), and dai_city_want().

◆ spacerace_leader

struct player* adv_data::spacerace_leader

◆ 

◆ suicide_attack

bool adv_data::suicide_attack

Definition at line 57 of file advdata.h.

◆ suicide_attackers

int adv_data::suicide_attackers

Definition at line 79 of file advdata.h.

◆ 

struct { ... } adv_data::threats

◆ unhappy_priority

int adv_data::unhappy_priority

Definition at line 108 of file advdata.h.

Referenced by adv_data_phase_init(), and adv_eval_calc_city().

◆ 

struct { ... } adv_data::units

◆ upgradeable

int adv_data::upgradeable

Definition at line 84 of file advdata.h.

◆ val

adv_want adv_data::val

Definition at line 121 of file advdata.h.

◆ wants_science

bool adv_data::wants_science

Definition at line 128 of file advdata.h.

Referenced by adv_data_default(), adv_data_phase_init(), and adv_wants_science().

◆ wonder_city