Freeciv-3.3
Loading...
Searching...
No Matches
Functions
daiair.h File Reference
#include "support.h"
#include "fc_types.h"

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)
 

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 583 of file daiair.c.

Referenced by military_advisor_choose_build().

◆ dai_evaluate_tile_for_attack()

int dai_evaluate_tile_for_attack ( struct unit punit,
struct tile dst_tile 
)

◆ 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 487 of file daiair.c.

Referenced by dai_manage_airunit(), and dai_manage_unit().