22 enum unit_activity new_activity);
24 enum unit_activity new_activity,
27 struct city *new_pcity,
bool rehome);
30 bool igzoc,
bool move_diplomat_city);
33 const int target_id,
const int sub_tgt_id,
37 const int target_id,
const int sub_tgt_id,
39 const enum action_requester requester);
43 const struct tile *target_tile,
44 const struct city *target_city,
45 const struct unit *target_unit);
48 const struct tile *target_tile,
49 const struct city *target_city,
50 const struct unit *target_unit);
53 enum server_side_agent agent);
void illegal_action_msg(struct player *pplayer, const enum event_type event, struct unit *actor, const action_id stopped_action, const struct tile *target_tile, const struct city *target_city, const struct unit *target_unit)
Try to explain to the player why an action is illegal.
bool unit_activity_handling(struct unit *punit, enum unit_activity new_activity)
Handle request for changing activity.
void unit_do_action(struct player *pplayer, const int actor_id, const int target_id, const int sub_tgt_id, const char *name, const action_id action_type)
Handle unit action.
void unit_change_homecity_handling(struct unit *punit, struct city *new_pcity, bool rehome)
Transfer a unit from one city (and possibly player) to another.
bool unit_activity_handling_targeted(struct unit *punit, enum unit_activity new_activity, struct extra_type **new_target)
Handle request for targeted activity.
bool unit_move_handling(struct unit *punit, struct tile *pdesttile, bool igzoc, bool move_diplomat_city)
Will try to move to/attack the tile dest_x,dest_y.
bool unit_server_side_agent_set(struct player *pplayer, struct unit *punit, enum server_side_agent agent)
Change controlling server side agent.
enum ane_kind action_not_enabled_reason(struct unit *punit, action_id act_id, const struct tile *target_tile, const struct city *target_city, const struct unit *target_unit)
Give the reason kind why an action isn't enabled.
bool unit_perform_action(struct player *pplayer, const int actor_id, const int target_id, const int sub_tgt_id, const char *name, const action_id action_type, const enum action_requester requester)
Execute a request to perform an action and let the caller know if it was performed or not.