Freeciv-3.2
|
Go to the source code of this file.
Functions | |
adv_want | dai_action_value_unit_vs_city (struct action *paction, struct unit *actor_unit, struct city *target_city, int sub_tgt_id, int count_tech) |
int | dai_action_choose_sub_tgt_unit_vs_city (struct action *paction, struct unit *actor_unit, struct city *target_city) |
int dai_action_choose_sub_tgt_unit_vs_city | ( | struct action * | paction, |
struct unit * | actor_unit, | ||
struct city * | target_city | ||
) |
Returns the sub target id of the sub target chosen for the specified action performed by the specified unit to the specified target city.
Definition at line 310 of file daiactions.c.
Referenced by dai_diplomat_city().
adv_want dai_action_value_unit_vs_city | ( | struct action * | paction, |
struct unit * | actor_unit, | ||
struct city * | target_city, | ||
int | sub_tgt_id, | ||
int | count_tech | ||
) |
Returns the utility of having the specified unit perform the specified action to the specified city target with the specified sub target. The sub target id is encoded like it is in the network protocol.
Definition at line 96 of file daiactions.c.
Referenced by dai_diplomat_city().