Freeciv-3.2
|
Go to the source code of this file.
Functions | |
void | dai_manage_airunit (struct ai_type *ait, struct player *pplayer, struct unit *punit) |
bool | dai_choose_attacker_air (struct ai_type *ait, struct player *pplayer, struct city *pcity, struct adv_choice *choice, bool allow_gold_upkeep) |
int | dai_evaluate_tile_for_attack (struct unit *punit, struct tile *dst_tile) |
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 582 of file aiair.c.
Referenced by military_advisor_choose_build().
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 486 of file aiair.c.
Referenced by dai_manage_airunit(), and dai_manage_unit().