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

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)
 

Function Documentation

◆ dai_action_choose_sub_tgt_unit_vs_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().

◆ dai_action_value_unit_vs_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().