void adv_data_analyze_rulesets(struct player *pplayer)
Analyze rulesets.
void adv_data_close(struct player *pplayer)
Free memory for advisor data.
void adv_data_init(struct player *pplayer)
Allocate memory for advisor data.
bool adv_wants_science(struct player *pplayer)
Return whether science would help us at all.
bool adv_data_phase_init(struct player *pplayer, bool is_new_phase)
Make and cache lots of calculations needed for other functions.
void adv_data_phase_done(struct player *pplayer)
Clean up our mess.
bool adv_is_player_dangerous(struct player *pplayer, struct player *aplayer)
There are some signs that a player might be dangerous: We are at war with him, he has done lots of ig...
struct adv_data * adv_data_get(struct player *pplayer, bool *close)
Return a pointer to our data.
void adv_best_government(struct player *pplayer)
Find best government to aim for.
void adv_data_default(struct player *pplayer)
Initialize with sane values.
@ ADV_IMPR_CALCULATE_FULL
struct adv_data::@85 threats
struct government * revolution
struct adv_dipl ** adv_dipl_slots
struct adv_data::@87 stats
struct player * production_leader
struct adv_data::@89 goal
struct adv_data::@88 dipl
struct adv_data::@89::@91 govt
struct adv_data::@87::@90 units
enum adv_improvement_status impr_calc[B_LAST]
bool phase_is_initialized
std::vector< adv_want > government_want
enum req_range impr_range[B_LAST]
struct adv_data::@86 explore
struct player * spacerace_leader