81 int target_id,
struct unit *target)
159 const enum effect_type
eft)
228 _(
"You have caused an diplomatic incident getting caught"
229 " trying to do %s to %s."),
238 _(
"You have caused an diplomatic incident getting caught"
239 " trying to do %s to %s %s."),
249 _(
"You have caused an diplomatic incident getting caught"
250 " trying to do %s at %s."),
285 _(
"The %s have caused an diplomatic incident getting caught"
286 " trying to do %s to %s."),
296 _(
"The %s have caused an diplomatic incident getting caught"
297 " trying to do %s to your %s."),
307 _(
"The %s have caused an diplomatic incident getting caught"
308 " trying to do %s at %s."),
337 _(
"Getting caught while trying to do %s gives "
338 "everyone a casus belli against you."),
344 _(
"Getting caught while trying to do %s to you gives "
345 "everyone a casus belli against the %s."),
352 _(
"You now have a casus belli against the %s. "
353 "They got caught trying to do %s."),
360 _(
"You now have a casus belli against the %s. "
361 "They got caught trying to do %s to the %s."),
411 _(
"You have caused an diplomatic incident doing %s to %s."),
420 _(
"You have caused an diplomatic incident doing %s to %s %s."),
430 _(
"You have caused an diplomatic incident doing %s at %s."),
465 _(
"The %s have caused an diplomatic incident doing %s to %s."),
475 _(
"The %s have caused an diplomatic incident doing "
486 _(
"The %s have caused an diplomatic incident doing %s at %s."),
515 _(
"Doing %s gives everyone a casus belli against you."),
521 _(
"Doing %s to you gives everyone a casus belli against "
529 _(
"You now have a casus belli against the %s. "
537 _(
"You now have a casus belli against the %s. "
538 "They did %s to the %s."),
923 if (pextra !=
NULL) {
954 const struct player *other_player,
979#define action_auto_perf_acquire_targets(_target_extra_) \
980 tgt_city = (target_city ? target_city \
981 : action_tgt_city(actor, unit_tile(actor), \
983 tgt_tile = (target_tile ? target_tile \
984 : action_tgt_tile(actor, unit_tile(actor), \
987 tgt_unit = (target_unit ? target_unit \
988 : action_tgt_unit(actor, unit_tile(actor), \
1002 const struct player *other_player,
1035#define perform_action_to(act, actor, tgtid, tgt_extra) \
1036 if (unit_perform_action(unit_owner(actor), \
1037 actor->id, tgtid, tgt_extra, \
1038 NULL, act, ACT_REQ_RULES)) { \
1039 return action_by_number(act); \
1104 const struct player *other_player,
const char * action_name_translation(const struct action *action)
bool action_prob_possible(const struct act_prob probability)
int action_dice_roll_odds(const struct player *act_player, const struct unit *act_unit, const struct city *tgt_city, const struct player *tgt_player, const struct action *paction)
struct act_prob action_prob_vs_tile(const struct civ_map *nmap, const struct unit *actor_unit, const action_id act_id, const struct tile *target_tile, const struct extra_type *target_extra)
enum action_sub_target_kind action_get_sub_target_kind(const struct action *paction)
bool is_action_enabled_unit_on_stack(const struct civ_map *nmap, const action_id wanted_action, const struct unit *actor_unit, const struct tile *target_tile)
bool is_action_enabled_unit_on_tile(const struct civ_map *nmap, const action_id wanted_action, const struct unit *actor_unit, const struct tile *target_tile, const struct extra_type *target_extra)
struct act_prob action_prob_vs_extras(const struct civ_map *nmap, const struct unit *actor_unit, const action_id act_id, const struct tile *target_tile, const struct extra_type *target_extra)
struct act_prob action_prob_self(const struct civ_map *nmap, const struct unit *actor_unit, const action_id act_id)
struct act_prob action_prob_fall_back(const struct act_prob *ap1, const struct act_prob *ap2)
bool is_action_enabled_unit_on_city(const struct civ_map *nmap, const action_id wanted_action, const struct unit *actor_unit, const struct city *target_city)
bool is_action_enabled_unit_on_unit(const struct civ_map *nmap, const action_id wanted_action, const struct unit *actor_unit, const struct unit *target_unit)
struct act_prob action_prob_vs_city(const struct civ_map *nmap, const struct unit *actor_unit, const action_id act_id, const struct city *target_city)
enum action_target_kind action_get_target_kind(const struct action *paction)
struct act_prob action_prob_vs_stack(const struct civ_map *nmap, const struct unit *actor_unit, const action_id act_id, const struct tile *target_tile)
bool is_action_enabled_unit_on_self(const struct civ_map *nmap, const action_id wanted_action, const struct unit *actor_unit)
bool action_id_is_rare_pop_up(action_id act_id)
struct act_prob action_prob_vs_unit(const struct civ_map *nmap, const struct unit *actor_unit, const action_id act_id, const struct unit *target_unit)
bool is_action_enabled_unit_on_extras(const struct civ_map *nmap, const action_id wanted_action, const struct unit *actor_unit, const struct tile *target_tile, const struct extra_type *target_extra)
#define action_auto_perf_by_cause_iterate(_cause_, _act_perf_)
#define action_auto_perf_actions_iterate_end
#define action_auto_perf_by_cause_iterate_end
#define action_has_result(_act_, _res_)
#define action_auto_perf_actions_iterate(_autoperf_, _act_id_)
#define action_iterate_end
#define action_id_get_actor_kind(act_id)
#define action_get_activity(_pact_)
#define ACTPROB_IMPOSSIBLE
#define action_iterate(_act_)
#define action_id_get_target_kind(act_id)
#define action_id_has_complex_target(act_id)
void call_incident(enum incident_type type, enum casus_belli_range scope, const struct action *paction, struct player *violator, struct player *victim)
struct unit struct city struct unit * target_unit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit * actor
struct unit struct city struct unit struct tile * target_tile
struct unit struct city * target_city
struct unit struct city struct unit struct tile struct extra_type * target_extra
int get_target_bonus_effects(struct effect_list *plist, const struct req_context *context, const struct player *other_player, enum effect_type effect_type)
const struct ft_color ftc_server
#define fc_assert(condition)
#define fc_assert_ret_val(condition, val)
const char * nation_adjective_for_player(const struct player *pplayer)
const char * nation_plural_for_player(const struct player *pplayer)
void notify_player(const struct player *pplayer, const struct tile *ptile, enum event_type event, const struct ft_color color, const char *format,...)
struct player_diplstate * player_diplstate_get(const struct player *plr1, const struct player *plr2)
enum casus_belli_range casus_belli_range_for(const struct player *offender, const struct unit_type *off_ut, const struct player *tgt_plr, const enum effect_type outcome, const struct action *paction, const struct tile *tgt_tile)
#define players_iterate_end
#define players_iterate(_pplayer)
void send_player_all_c(struct player *src, struct conn_list *dest)
void player_update_last_war_action(struct player *pplayer)
bool are_reqs_active(const struct req_context *context, const struct player *other_player, const struct requirement_vector *reqs, const enum req_problem_type prob_type)
enum action_auto_perf_cause cause
char has_reason_to_cancel
const struct player * player
struct city * tile_city(const struct tile *ptile)
bool unit_is_alive(int id)
int unit_pays_mp_for_action(const struct action *paction, const struct unit *punit)
#define unit_list_iterate(unitlist, punit)
#define unit_list_iterate_end
const struct unit_type * unit_type_get(const struct unit *punit)
bool utype_is_consumed_by_action(const struct action *paction, const struct unit_type *utype)