31 #define SPECENUM_NAME war_reason
32 #define SPECENUM_VALUE0 DAI_WR_BEHAVIOUR
33 #define SPECENUM_VALUE0NAME "Behaviour"
34 #define SPECENUM_VALUE1 DAI_WR_SPACE
35 #define SPECENUM_VALUE1NAME "Space"
36 #define SPECENUM_VALUE2 DAI_WR_EXCUSE
37 #define SPECENUM_VALUE2NAME "Excuse"
38 #define SPECENUM_VALUE3 DAI_WR_HATRED
39 #define SPECENUM_VALUE3NAME "Hatred"
40 #define SPECENUM_VALUE4 DAI_WR_ALLIANCE
41 #define SPECENUM_VALUE4NAME "Alliance"
42 #define SPECENUM_VALUE5 DAI_WR_NONE
43 #define SPECENUM_VALUE5NAME "None"
44 #include "specenum_gen.h"
107 bool *caller_closes);
110 const struct player *plr1,
111 const struct player *plr2);
bool is_ai_data_phase_open(struct ai_type *ait, struct player *pplayer)
Return whether data phase is currently open.
void dai_gov_value(struct ai_type *ait, struct player *pplayer, struct government *gov, adv_want *val, bool *override)
Set value of the government.
struct ai_dip_intel * dai_diplomacy_get(struct ai_type *ait, const struct player *plr1, const struct player *plr2)
Returns diplomatic state type between two players.
void dai_adjust_policies(struct ai_type *ait, struct player *pplayer)
Adjust multiplier values.
void dai_data_init(struct ai_type *ait, struct player *pplayer)
Initialize ai data structure.
void dai_data_phase_begin(struct ai_type *ait, struct player *pplayer, bool is_new_phase)
Make and cache lots of calculations needed for other functions.
void dai_data_phase_finished(struct ai_type *ait, struct player *pplayer)
Clean up ai data after phase finished.
struct ai_plr * dai_plr_data_get(struct ai_type *ait, struct player *pplayer, bool *caller_closes)
Get current default ai data related to player.
void dai_data_close(struct ai_type *ait, struct player *pplayer)
Deinitialize ai data structure.
struct player * at_war_with_ally
signed char asked_about_alliance
enum war_reason war_reason
signed char asked_about_peace
struct player * is_allied_with_ally
signed char warned_about_space
signed char ally_patience
struct player * is_allied_with_enemy
signed char asked_about_ceasefire
struct ai_plr::@156 diplomacy
struct ai_settler * settler
adv_want tech_want[A_LAST+1]
int req_love_for_alliance
QSet< int > diplomat_reservations
const struct ai_dip_intel ** player_intel_slots
struct ai_plr::@155 stats
enum winning_strategy strategy