41#define can_unit_do_activity_client(_punit_, _act_) \
42 can_unit_do_activity(&(wld.map), _punit_, _act_)
43#define can_unit_do_activity_targeted_client(_punit_, _act_, _tgt_) \
44 can_unit_do_activity_targeted(&(wld.map), _punit_, _act_, _tgt_)
45#define can_units_do_activity_client(_punits_, _act_) \
46 can_units_do_activity(&(wld.map), _punits_, _act_)
47#define can_units_do_activity_targeted_client(_punits_, _act_, _tgt_) \
48 can_units_do_activity_targeted(&(wld.map), _punits_, _act_, _tgt_)
93 struct tile *dest_tile);
127#define SPECENUM_NAME unit_select_type_mode
128#define SPECENUM_VALUE0 SELTYPE_SINGLE
129#define SPECENUM_VALUE1 SELTYPE_SAME
130#define SPECENUM_VALUE2 SELTYPE_ALL
133#define SPECENUM_NAME unit_select_location_mode
134#define SPECENUM_VALUE0 SELLOC_UNITS
135#define SPECENUM_VALUE1 SELLOC_TILE
136#define SPECENUM_VALUE2 SELLOC_CONT
137#define SPECENUM_VALUE3 SELLOC_LAND
138#define SPECENUM_VALUE4 SELLOC_SEA
139#define SPECENUM_VALUE5 SELLOC_BOTH
140#define SPECENUM_VALUE6 SELLOC_WORLD
141#define SPECENUM_COUNT SELLOC_COUNT
295#define MAX_NUM_UNITS_BELOW 4
double blink_turn_done_button(void)
void key_coastline_toggle(void)
void key_irrigation_toggle(void)
void request_toggle_huts(void)
void key_unit_sentry(void)
void request_toggle_city_outlines(void)
void request_unit_airlift(struct unit *punit, struct city *pcity)
void do_move_unit(struct unit *punit, struct unit *target_unit)
void request_toggle_resources(void)
void request_toggle_city_names(void)
void key_recall_previous_focus_unit(void)
void request_unit_non_action_move(struct unit *punit, struct tile *dest_tile)
void request_toggle_unit_stack_size(void)
bool unit_is_in_focus(const struct unit *punit)
void key_city_output_toggle(void)
void request_toggle_focus_unit(void)
void request_toggle_city_output(void)
void request_unit_return(struct unit *punit)
void request_unit_fortify(struct unit *punit)
void key_unit_build_city(void)
void key_editor_recalculate_borders(void)
struct unit * request_unit_unload_all(struct unit *punit)
void request_unit_caravan_action(struct unit *punit, action_id action)
void action_selection_no_longer_in_progress(const int old_actor_id)
void set_hover_state(struct unit_list *punits, enum cursor_hover_state state, enum unit_activity connect_activity, struct extra_type *tgt, int last_tgt, int goto_last_sub_tgt, action_id goto_last_action, enum unit_orders goto_last_order)
enum unit_orders goto_last_order
void request_units_wait(struct unit_list *punits)
void request_unit_wakeup(struct unit *punit)
struct unit * get_focus_unit_on_tile(const struct tile *ptile)
void key_focus_unit_toggle(void)
void request_toggle_map_grid(void)
void action_decision_request(struct unit *actor_unit)
void request_toggle_mines(void)
void set_units_in_combat(struct unit *pattacker, struct unit *pdefender)
int check_recursive_road_connect(struct tile *ptile, const struct extra_type *pextra, const struct unit *punit, const struct player *pplayer, int rec)
void key_unit_action_select(void)
void key_unit_auto_explore(void)
void key_cancel_action(void)
void request_toggle_city_buycost(void)
void clear_hover_state(void)
void request_toggle_map_native(void)
void request_unit_patrol(void)
void key_unit_connect(enum unit_activity activity, struct extra_type *tgt)
void key_city_full_bar_toggle(void)
void key_bases_toggle(void)
void do_map_click(struct tile *ptile, enum quickselect_type qtype)
void key_map_native_toggle(void)
void request_toggle_map_borders(void)
void key_resources_toggle(void)
void unit_focus_add(struct unit *punit)
void unit_focus_set(struct unit *punit)
void request_unit_goto(enum unit_orders last_order, action_id act_id, int sub_tgt_id)
void do_unit_paradrop_to(struct unit *punit, struct tile *ptile)
bool should_ask_server_for_actions(const struct unit *punit)
struct extra_type * connect_tgt
void key_unit_paradrop(void)
struct unit_list * get_units_in_focus(void)
void request_do_action(action_id action, int actor_id, int target_id, int sub_tgt, const char *name)
void request_unit_disband(struct unit *punit)
void request_toggle_irrigation(void)
void request_unit_pillage(struct unit *punit)
void key_unit_teleport(void)
void request_center_focus_unit(void)
void unit_focus_urgent(struct unit *punit)
void key_unit_shields_toggle(void)
void key_city_productions_toggle(void)
bool can_unit_do_connect(struct unit *punit, enum unit_activity activity, struct extra_type *tgt)
void key_unit_build_wonder(void)
void key_unit_plant(void)
void key_unit_fortress(void)
void request_unit_change_homecity(struct unit *punit)
void request_toggle_fog_of_war(void)
void request_unit_load(struct unit *pcargo, struct unit *ptransporter, struct tile *ptile)
void key_unit_pillage(void)
void request_unit_unload(struct unit *pcargo)
void key_editor_toggle_fogofwar(void)
void request_unit_ssa_set(const struct unit *punit, enum server_side_agent agent)
void request_action_details(action_id action, int actor_id, int target_id)
enum unit_activity connect_activity
void request_toggle_units(void)
void request_new_unit_activity_targeted(struct unit *punit, enum unit_activity act, struct extra_type *tgt)
void update_unit_pix_label(struct unit_list *punitlist)
void key_unit_irrigate(void)
void request_unit_build_city(struct unit *punit)
void unit_change_battlegroup(struct unit *punit, int battlegroup)
void key_unit_unload_all(void)
void key_cities_toggle(void)
void key_unit_move(enum direction8 gui_dir)
void key_city_outlines_toggle(void)
void key_unit_homecity(void)
void request_unit_paradrop(struct unit_list *punits)
void key_unit_patrol(void)
void request_toggle_city_full_bar(void)
void request_toggle_city_growth(void)
void key_unit_solid_bg_toggle(void)
void request_toggle_unit_solid_bg(void)
void action_confirmation(struct act_confirmation_data *data, bool confirm)
void key_terrain_toggle(void)
void key_paths_toggle(void)
void request_unit_sentry(struct unit *punit)
void key_unit_wakeup_others(void)
enum cursor_hover_state hover_state
void key_unit_stack_size_toggle(void)
void key_huts_toggle(void)
void key_fog_of_war_toggle(void)
void request_unit_connect(enum unit_activity activity, struct extra_type *tgt)
void clear_unit_orders(struct unit *punit)
void request_toggle_terrain(void)
void action_decision_clear_want(const int old_actor_id)
void key_units_toggle(void)
void do_unit_connect(struct tile *ptile, enum unit_activity activity, struct extra_type *tgt)
void unit_focus_remove(struct unit *punit)
void request_toggle_bases(void)
void do_unit_patrol_to(struct tile *ptile)
void key_unit_trade_route(void)
void request_toggle_coastline(void)
void key_unit_select_battlegroup(int battlegroup, bool append)
void key_map_grid_toggle(void)
void finish_city(struct tile *ptile, const char *name)
void key_pollution_toggle(void)
struct unit * head_of_units_in_focus(void)
struct unit * find_visible_unit(struct tile *ptile)
void key_city_growth_toggle(void)
void key_unit_action_select_tgt(void)
void key_city_buycost_toggle(void)
int get_num_units_in_focus(void)
void key_unit_transform(void)
void request_move_unit_direction(struct unit *punit, int dir)
void key_city_trade_routes_toggle(void)
void request_toggle_city_trade_routes(void)
void unit_focus_set_and_select(struct unit *punit)
void request_unit_convert(struct unit *punit)
void request_toggle_paths(void)
void request_toggle_unit_shields(void)
void key_city_names_toggle(void)
void unit_register_battlegroup(struct unit *punit)
void request_unit_select(struct unit_list *punits, enum unit_select_type_mode seltype, enum unit_select_location_mode selloc)
void unit_focus_update(void)
void key_unit_auto_work(void)
void key_unit_airbase(void)
void control_mouse_cursor(struct tile *ptile)
void key_unit_convert(void)
void key_unit_clean(void)
void key_center_capital(void)
void wakeup_sentried_units(struct tile *ptile)
void request_toggle_cities(void)
void key_unit_fortify(void)
void key_editor_toggle(void)
void key_unit_assign_battlegroup(int battlegroup, bool append)
void request_unit_move_done(void)
void auto_center_on_focus_unit(void)
void key_unit_cultivate(void)
double blink_active_unit(void)
void unit_focus_advance(bool accept_current)
void request_unit_upgrade(struct unit *punit)
void control_unit_killed(struct unit *punit)
void request_toggle_city_productions(void)
void cancel_city(struct tile *ptile)
void request_new_unit_activity(struct unit *punit, enum unit_activity act)
void request_toggle_pollution(void)
action_id goto_last_action
void key_mines_toggle(void)
void do_unit_goto(struct tile *ptile)
void action_selection_next_in_focus(const int old_actor_id)
void request_unit_autoworker(const struct unit *punit)
void key_map_borders_toggle(void)
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 struct unit * punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int const struct action *paction struct unit struct city * pcity
enum unit_activity activity