Freeciv21
Develop your civilization from humble roots to a global empire
aiair.h File Reference
#include "support.h"
#include "fc_types.h"
+ Include dependency graph for aiair.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void dai_manage_airunit (struct ai_type *ait, struct player *pplayer, struct unit *punit)
 Trying to manage bombers and stuff. More...
 
bool dai_choose_attacker_air (struct ai_type *ait, struct player *pplayer, struct city *pcity, struct adv_choice *choice, bool allow_gold_upkeep)
 Chooses the best available and usable air unit and records it in choice, if it's better than previous choice The interface is somewhat different from other ai_choose, but that's what it should be like, I believe – GB. More...
 

Function Documentation

◆ dai_choose_attacker_air()

bool dai_choose_attacker_air ( struct ai_type ait,
struct player pplayer,
struct city pcity,
struct adv_choice choice,
bool  allow_gold_upkeep 
)

Chooses the best available and usable air unit and records it in choice, if it's better than previous choice The interface is somewhat different from other ai_choose, but that's what it should be like, I believe – GB.

Definition at line 429 of file aiair.cpp.

Referenced by military_advisor_choose_build().

◆ dai_manage_airunit()

void dai_manage_airunit ( struct ai_type ait,
struct player pplayer,
struct unit punit 
)

Trying to manage bombers and stuff.

If we are in the open { if moving intelligently on a valid GOTO, { carry on doing it. } else { go refuel } } else { try to attack something } TODO: distant target selection, support for fuel > 2

Definition at line 334 of file aiair.cpp.

Referenced by dai_manage_unit().