Home
last modified time | relevance | path

Searched refs:victim_cost (Results 1 – 4 of 4) sorted by relevance

/dports/games/freeciv-nox11/freeciv-2.6.6/ai/default/
H A Daiair.c168 int balanced_cost, unit_cost, victim_cost = 0; in dai_evaluate_tile_for_air_attack() local
190 victim_cost = stack_cost(punit, pdefender); in dai_evaluate_tile_for_air_attack()
191 if (0 == victim_cost) { in dai_evaluate_tile_for_air_attack()
197 victim_cost -= unit_build_shield_cost(punit); in dai_evaluate_tile_for_air_attack()
209 profit = kill_desire(victim_cost, unit_attack, unit_cost, victim_defence, 1) in dai_evaluate_tile_for_air_attack()
H A Daitools.c944 int victim_cost = 0; in stack_cost() local
950 victim_cost += unit_build_shield_cost(aunit); in stack_cost()
955 victim_cost = unit_build_shield_cost(pdefender); in stack_cost()
958 return victim_cost; in stack_cost()
/dports/games/freeciv/freeciv-2.6.6/ai/default/
H A Daiair.c168 int balanced_cost, unit_cost, victim_cost = 0; in dai_evaluate_tile_for_air_attack() local
190 victim_cost = stack_cost(punit, pdefender); in dai_evaluate_tile_for_air_attack()
191 if (0 == victim_cost) { in dai_evaluate_tile_for_air_attack()
197 victim_cost -= unit_build_shield_cost(punit); in dai_evaluate_tile_for_air_attack()
209 profit = kill_desire(victim_cost, unit_attack, unit_cost, victim_defence, 1) in dai_evaluate_tile_for_air_attack()
H A Daitools.c944 int victim_cost = 0; in stack_cost() local
950 victim_cost += unit_build_shield_cost(aunit); in stack_cost()
955 victim_cost = unit_build_shield_cost(pdefender); in stack_cost()
958 return victim_cost; in stack_cost()