377 int target_id =
vcity->id;
409 area = pwindow->
area;
438 if (
max_col * max_row < count) {
474 buf->data.cont = cont;
478 if (count > (
col * max_row)) {
505 buf->data.cont = cont;
521 count = (count + (
col - 1)) /
col;
522 if (count > max_row) {
537 (pwindow->
size.w - pwindow->
area.w) + area.w,
538 (pwindow->
size.h - pwindow->
area.h) + area.h)) {
542 area = pwindow->
area;
550 buf->
size.x = area.x + area.w -
buf->size.w - 1;
560 area.x + area.w, area.y,
730 int actor_id, target_id, sub_target;
975 "Diplomat queue problem. Is another diplomat window open?");
1010 area = pwindow->
area;
1122 area.w =
MAX(area.w,
buf->size.w);
1123 area.h +=
buf->size.h;
1134 area.w =
MAX(area.w,
buf->size.w);
1135 area.h +=
buf->size.h;
1142 (pwindow->
size.w - pwindow->
area.w) + area.w,
1143 (pwindow->
size.h - pwindow->
area.h) + area.h);
1145 area = pwindow->
area;
1156 area.y + 1, area.w, 0,
1331 int n, w = 0, h,
imp_h = 0,
y;
1367 area = pwindow->
area;
1389 buf->data.cont = cont;
1394 area.w =
MAX(area.w,
buf->size.w);
1395 area.h +=
buf->size.h;
1401 area.h +=
buf->next->size.h;
1409 if (pimprove->sabotage > 0) {
1413 buf->data.cont = cont;
1418 area.w =
MAX(area.w ,
buf->size.w);
1439 area.h +=
buf->next->size.h;
1453 buf->data.cont = cont;
1458 area.w =
MAX(area.w,
buf->size.w);
1459 area.h +=
buf->size.h;
1483 (pwindow->
size.w - pwindow->
area.w) + area.w,
1484 (pwindow->
size.h - pwindow->
area.h) + area.h);
1486 area = pwindow->
area;
1496 buf->
size.x = area.x + area.w -
buf->size.w - 1;
1502 buf->size.x = area.x;
1503 buf->size.y =
y = area.y + 1;
1517 buf->size.x =
buf->next->size.x;
1518 buf->size.y =
y =
y +
buf->next->size.h;
1660 "Treasury contains %d gold.",
1708 _(
"City can't be incited!"),
NULL);
1718 PL_(
"Incite a revolt for %d gold?\n%s",
1719 "Incite a revolt for %d gold?\n%s",
cost),
cost,
tBuf);
1769 PL_(
"Inciting a revolt costs %d gold.\n%s",
1770 "Inciting a revolt costs %d gold.\n%s",
cost),
cost,
tBuf);
1781 _(
"Traitors Demand Too Much!"),
NULL);
1939 "Treasury contains %d gold.",
1963 PL_(
"Bribe unit for %d gold?\n%s",
2013 PL_(
"Bribing the unit costs %d gold.\n%s",
2014 "Bribing the unit costs %d gold.\n%s",
cost),
cost,
tBuf);
2025 _(
"Traitors Demand Too Much!"),
NULL);
2104 "Treasury contains %d gold.",
2128 PL_(
"Bribe unit stack for %d gold?\n%s",
2129 "Bribe unit stack for %d gold?\n%s",
cost),
cost,
tBuf);
2141 buf->data.tile = ptile;
2178 PL_(
"Bribing the unit stack costs %d gold.\n%s",
2179 "Bribing the unit stack costs %d gold.\n%s",
cost),
cost,
tBuf);
2190 _(
"Traitors Demand Too Much!"),
NULL);
const char * action_prepare_ui_name(action_id act_id, const char *mnemonic, const struct act_prob prob, const char *custom)
enum action_actor_kind action_get_actor_kind(const struct action *paction)
bool action_prob_possible(const struct act_prob probability)
enum action_sub_target_kind action_get_sub_target_kind(const struct action *paction)
enum action_target_kind action_get_target_kind(const struct action *paction)
static struct action * action_by_number(action_id act_id)
#define action_iterate_end
#define action_id_get_actor_kind(act_id)
#define action_iterate(_act_)
#define action_id_get_target_kind(act_id)
void astr_free(struct astring *astr)
void astr_set(struct astring *astr, const char *format,...)
static const char * astr_str(const struct astring *astr) fc__attribute((nonnull(1)))
const char * city_improvement_name_translation(const struct city *pcity, const struct impr_type *pimprove)
const char * city_name_get(const struct city *pcity)
#define INCITE_IMPOSSIBLE_COST
#define city_owner(_pcity_)
#define city_built_iterate(_pcity, _p)
#define city_built_iterate_end
void client_unit_init_act_prob_cache(struct unit *punit)
void action_selection_no_longer_in_progress(const int old_actor_id)
void request_do_action(action_id action, int actor_id, int target_id, int sub_tgt, const char *name)
void request_action_details(action_id action, int actor_id, int target_id)
void action_decision_clear_want(const int old_actor_id)
void auto_center_on_focus_unit(void)
void action_selection_next_in_focus(const int old_actor_id)
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id popup_bribe_unit_dialog
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 popup_sabotage_dialog
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 struct extra_type const struct act_prob *act_probs action_selection_no_longer_in_progress_gui_specific
struct unit struct city struct unit struct tile * target_tile
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
struct unit struct city * target_city
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 cost
struct unit struct city struct unit struct tile struct extra_type * target_extra
#define IDENTITY_NUMBER_ZERO
#define PL_(String1, String2, n)
struct unit * game_unit_by_number(int id)
struct city * game_city_by_number(int id)
int action_selection_target_extra(void)
int action_selection_target_tile(void)
int action_selection_actor_unit(void)
void popup_bribe_stack_dialog(struct unit *actor, struct tile *ptile, int cost, const struct action *paction)
static void spy_steal_popup_shared(GtkWidget *w, gpointer data)
void action_selection_close(void)
int action_selection_target_city(void)
static void action_entry(GtkWidget *shl, action_id act_id, const struct act_prob *act_probs, const char *custom, action_id act_num)
static void spy_steal_esc_popup(GtkWidget *w, gpointer data)
static void spy_steal_popup(GtkWidget *w, gpointer data)
static action_id get_non_targeted_action_id(action_id tgt_action_id)
static void found_city_callback(GtkWidget *w, gpointer data)
void action_selection_refresh(struct unit *actor_unit, struct city *target_city, struct unit *target_unit, struct tile *target_tile, struct extra_type *target_extra, const struct act_prob *act_probs)
static void simple_action_callback(GtkWidget *w, gpointer data)
static bool is_more_user_input_needed
static void act_sel_wait_callback(GtkWidget *w, gpointer data)
static action_id get_production_targeted_action_id(action_id tgt_action_id)
static bool did_not_decide
int action_selection_target_unit(void)
void popup_incite_dialog(struct unit *actor, struct city *pcity, int cost, const struct action *paction)
static const GCallback af_map[ACTION_COUNT]
static void upgrade_callback(GtkWidget *w, gpointer data)
static struct diplomat_dialog * diplomat_dlg
static struct small_diplomat_dialog * incite_dlg
static int exit_incite_dlg_callback(struct widget *pwidget)
static int incite_dlg_window_callback(struct widget *pwindow)
static int diplomat_bribe_unit_callback(struct widget *pwidget)
static int spy_sabotage_request(struct widget *pwidget)
static int diplomat_bribe_stack_callback(struct widget *pwidget)
bool is_unit_move_blocked
static int spy_strike_bld_request(struct widget *pwidget)
static int sabotage_impr_callback(struct widget *pwidget)
static int bribe_dlg_window_callback(struct widget *pwindow)
static void act_sel_done_primary(int actor_unit_id)
static int diplomat_incite_yes_callback(struct widget *pwidget)
static int diplomat_close_callback(struct widget *pwidget)
static int diplomat_bribe_stack_yes_callback(struct widget *pwidget)
static int spy_sabotage_esc_request(struct widget *pwidget)
static int diplomat_dlg_window_callback(struct widget *pwindow)
static int spy_incite_callback(struct widget *pwidget)
static void act_sel_done_secondary(int actor_unit_id)
void popdown_diplomat_dialog(void)
static int exit_bribe_dlg_callback(struct widget *pwidget)
void popdown_incite_dialog(void)
void popdown_bribe_dialog(void)
static int exit_spy_tgt_dlg_callback(struct widget *pwidget)
static int spy_steal_dlg_window_callback(struct widget *pwindow)
static int spy_steal_callback(struct widget *pwidget)
static int diplomat_incite_callback(struct widget *pwidget)
int(* act_func)(struct widget *)
static struct small_diplomat_dialog * bribe_dlg
static int diplomat_bribe_unit_yes_callback(struct widget *pwidget)
SDL_Color * get_theme_color(enum theme_color themecolor)
void put_window_near_map_tile(struct widget *pwindow, int window_width, int window_height, struct tile *ptile)
void popup_unit_upgrade_dlg(struct unit *punit, bool city)
int main_window_width(void)
struct sdl2_data main_data
SDL_Surface * create_surf(int width, int height, Uint32 flags)
int main_window_height(void)
#define map_rgba(format, color)
@ ID_TERRAIN_ADV_DLG_WINDOW
@ ID_BRIBE_DLG_EXIT_BUTTON
@ ID_TERRAIN_ADV_DLG_EXIT_BUTTON
@ ID_INCITE_DLG_EXIT_BUTTON
#define PRESSED_EVENT(event)
utf8_str * copy_chars_to_utf8_str(utf8_str *pstr, const char *pchars)
utf8_str * create_utf8_str_fonto(char *in_text, size_t n_alloc, enum font_origin origin)
#define FREEUTF8STR(pstr)
#define create_utf8_from_char_fonto(string_in, fonto)
SDL_Surface * create_select_tech_icon(utf8_str *pstr, Tech_type_id tech_id, enum tech_info_mode mode)
SDL_Surface * theme_get_background(const struct theme *t, enum theme_background background)
@ COLOR_THEME_SABOTAGEDLG_SEPARATOR
struct theme * active_theme
struct impr_type * improvement_by_number(const Impr_type_id id)
Impr_type_id improvement_number(const struct impr_type *pimprove)
#define fc_assert_msg(condition, message,...)
#define fc_assert(condition)
#define fc_assert_ret_msg(condition, message,...)
#define fc_assert_action(condition, action)
#define fc_assert_ret_val_msg(condition, val, message,...)
struct tile * index_to_tile(const struct civ_map *imap, int mindex)
#define fc_calloc(n, esz)
int dsend_packet_city_name_suggestion_req(struct connection *pc, int unit_id)
struct research * research_get(const struct player *pplayer)
enum tech_state research_invention_state(const struct research *presearch, Tech_type_id tech)
bool research_invention_gettable(const struct research *presearch, const Tech_type_id tech, bool allow_holes)
struct widget * begin_active_widget_list
struct widget * end_widget_list
struct widget * end_active_widget_list
struct widget * active_widget_list
struct scroll_bar * scroll
struct widget * begin_widget_list
struct packet_game_info info
int sub_target_id[ASTK_COUNT]
int target_ids[ATK_COUNT]
struct advanced_dialog * pdialog
bool tech_steal_allow_holes
struct widget * begin_widget_list
struct widget * end_widget_list
struct small_dialog * pdialog
struct unit::@84::@86 client
struct act_prob * act_prob_cache
int fc_snprintf(char *str, size_t n, const char *format,...)
struct advance * advance_by_number(const Tech_type_id atype)
const char * advance_name_translation(const struct advance *padvance)
struct advance * valid_advance_by_number(const Tech_type_id id)
Tech_type_id advance_number(const struct advance *padvance)
#define advance_index_iterate_max(_start, _index, _max)
#define advance_index_iterate_max_end
static Tech_type_id advance_count(void)
const char * get_act_sel_action_custom_text(struct action *paction, const struct act_prob prob, const struct unit *actor_unit, const struct city *target_city)
bool unit_can_do_action(const struct unit *punit, const action_id act_id)
const struct unit_type * unit_type_get(const struct unit *punit)
const char * unit_name_translation(const struct unit *punit)
struct advance * utype_primary_tech_req(const struct unit_type *ptype)