Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/include/dialogs_g.h Source File

Freeciv-3.2

Loading...
Searching...
No Matches
dialogs_g.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__DIALOGS_G_H
14#define FC__DIALOGS_G_H
15
16/* utility */
17#include "support.h" /* bool type */
18
19/* common */
20#include "actions.h"
21#include "fc_types.h"
22#include "featured_text.h" /* struct text_tag_list */
23#include "nation.h" /* Nation_type_id */
24#include "terrain.h" /* enum tile_special_type */
25#include "unitlist.h"
26
27/* client */
28#include "gui_proto_constructor.h"
29
30struct packet_nations_selected_info;
31struct act_confirmation_data;
32
33 GUI_FUNC_PROTO(void, popup_notify_goto_dialog, const char *headline,
34 const char *lines,
35 const struct text_tag_list *tags,
36 struct tile *ptile)
37 GUI_FUNC_PROTO(void, popup_notify_dialog, const char *caption,
38 const char *headline, const char *lines)
39 GUI_FUNC_PROTO(void, popup_connect_msg,
40 const char *headline, const char *message)
41
42 GUI_FUNC_PROTO(void, popup_races_dialog, struct player *pplayer)
43 GUI_FUNC_PROTO(void, popdown_races_dialog, void)
44
45 GUI_FUNC_PROTO(void, unit_select_dialog_popup, struct tile *ptile)
46void unit_select_dialog_update(void); /* Defined in update_queue.c. */
47 GUI_FUNC_PROTO(void, unit_select_dialog_update_real, void *unused)
48
49 GUI_FUNC_PROTO(void, races_toggles_set_sensitive, void)
50 GUI_FUNC_PROTO(void, races_update_pickable, bool nationset_change)
51
52 GUI_FUNC_PROTO(void, popup_combat_info, int attacker_unit_id,
53 int defender_unit_id, int attacker_hp, int defender_hp,
54 bool make_att_veteran, bool make_def_veteran)
55 GUI_FUNC_PROTO(void, popup_action_selection, struct unit *actor_unit,
56 struct city *target_city, struct unit *target_unit,
57 struct tile *target_tile, struct extra_type *target_extra,
58 const struct act_prob *act_probs)
59 GUI_FUNC_PROTO(int, action_selection_actor_unit, void)
60 GUI_FUNC_PROTO(int, action_selection_target_city, void)
61 GUI_FUNC_PROTO(int, action_selection_target_unit, void)
62 GUI_FUNC_PROTO(int, action_selection_target_tile, void)
63 GUI_FUNC_PROTO(int, action_selection_target_extra, void)
64 GUI_FUNC_PROTO(void, action_selection_close, void)
65 GUI_FUNC_PROTO(void, action_selection_refresh, struct unit *actor_unit,
66 struct city *target_city, struct unit *target_unit,
67 struct tile *target_tile, struct extra_type *target_extra,
68 const struct act_prob *act_probs)
69 GUI_FUNC_PROTO(void, action_selection_no_longer_in_progress_gui_specific,
70 int actor_unit_id)
71 GUI_FUNC_PROTO(void, popup_incite_dialog, struct unit *actor,
72 struct city *pcity, int cost, const struct action *paction)
73 GUI_FUNC_PROTO(void, popup_bribe_dialog, struct unit *actor,
74 struct unit *punit, int cost, const struct action *paction)
75 GUI_FUNC_PROTO(void, popup_sabotage_dialog, struct unit *actor,
76 struct city *pcity, const struct action *paction)
77 GUI_FUNC_PROTO(void, popup_pillage_dialog, struct unit *punit, bv_extras extras)
78 GUI_FUNC_PROTO(void, popup_upgrade_dialog, struct unit_list *punits)
79 GUI_FUNC_PROTO(void, popup_disband_dialog, struct unit_list *punits)
80 GUI_FUNC_PROTO(void, popup_tileset_suggestion_dialog, void)
81 GUI_FUNC_PROTO(void, popup_soundset_suggestion_dialog, void)
82 GUI_FUNC_PROTO(void, popup_musicset_suggestion_dialog, void)
83 GUI_FUNC_PROTO(bool, popup_theme_suggestion_dialog, const char *theme_name)
84 GUI_FUNC_PROTO(void, show_tech_gained_dialog, Tech_type_id tech)
85 GUI_FUNC_PROTO(void, show_tileset_error,
86 bool fatal, const char *tset_name, const char *msg)
87 GUI_FUNC_PROTO(bool, handmade_scenario_warning, void)
88
89 GUI_FUNC_PROTO(void, popdown_all_game_dialogs, void)
90
91 GUI_FUNC_PROTO(bool, request_transport, struct unit *pcargo, struct tile *ptile)
92 GUI_FUNC_PROTO(void, request_action_confirmation, const char *expl,
93 struct act_confirmation_data *data)
94
95 GUI_FUNC_PROTO(void, update_infra_dialog, void)
96
97#endif /* FC__DIALOGS_G_H */
actions.h
incite_cost
char * incite_cost
Definition comments.c:74
target_unit
struct unit struct city struct unit * target_unit
Definition dialogs_g.h:56
show_tileset_error
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 show_tileset_error
Definition dialogs_g.h:85
popup_action_selection
popup_action_selection
Definition dialogs_g.h:55
actor_unit
struct unit * actor_unit
Definition dialogs_g.h:55
popup_bribe_dialog
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id popup_bribe_dialog
Definition dialogs_g.h:73
actor
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit * actor
Definition dialogs_g.h:73
caption
const char * caption
Definition dialogs_g.h:37
action_selection_no_longer_in_progress_gui_specific
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
Definition dialogs_g.h:69
headline
const char const char * headline
Definition dialogs_g.h:38
popup_notify_dialog
popup_notify_dialog
Definition dialogs_g.h:37
fatal
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 bool fatal
Definition dialogs_g.h:86
target_tile
struct unit struct city struct unit struct tile * target_tile
Definition dialogs_g.h:57
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 * punit
Definition dialogs_g.h:74
target_city
struct unit struct city * target_city
Definition dialogs_g.h:56
cost
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
Definition dialogs_g.h:74
target_extra
struct unit struct city struct unit struct tile struct extra_type * target_extra
Definition dialogs_g.h:57
tset_name
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 bool const char * tset_name
Definition dialogs_g.h:86
extras
static struct extra_type extras[MAX_EXTRA_TYPES]
Definition extras.c:31
fc_types.h
Tech_type_id
int Tech_type_id
Definition fc_types.h:380
featured_text.h
action_selection_target_extra
int action_selection_target_extra(void)
Definition action_dialog.c:1641
actor_unit_id
static int actor_unit_id
Definition action_dialog.c:68
action_selection_target_tile
int action_selection_target_tile(void)
Definition action_dialog.c:1626
action_selection_actor_unit
int action_selection_actor_unit(void)
Definition action_dialog.c:1583
action_selection_close
void action_selection_close(void)
Definition action_dialog.c:1732
action_selection_target_city
int action_selection_target_city(void)
Definition action_dialog.c:1597
action_selection_refresh
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)
Definition action_dialog.c:1653
popup_sabotage_dialog
void popup_sabotage_dialog(struct unit *actor, struct city *pcity, const struct action *paction)
Definition action_dialog.c:931
action_selection_target_unit
int action_selection_target_unit(void)
Definition action_dialog.c:1611
popup_incite_dialog
void popup_incite_dialog(struct unit *actor, struct city *pcity, int cost, const struct action *paction)
Definition action_dialog.c:966
unit_select_dialog_popup
void unit_select_dialog_popup(struct tile *ptile)
Definition dialogs.c:377
popup_upgrade_dialog
void popup_upgrade_dialog(struct unit_list *punits)
Definition dialogs.c:1435
races_update_pickable
void races_update_pickable(bool nationset_change)
Definition dialogs.c:731
popup_notify_goto_dialog
void popup_notify_goto_dialog(const char *headline, const char *lines, const struct text_tag_list *tags, struct tile *ptile)
Definition dialogs.c:196
show_tech_gained_dialog
void show_tech_gained_dialog(Tech_type_id tech)
Definition dialogs.c:1524
popup_races_dialog
void popup_races_dialog(struct player *pplayer)
Definition dialogs.c:1215
popup_disband_dialog
void popup_disband_dialog(struct unit_list *punits)
Definition dialogs.c:1473
popdown_races_dialog
void popdown_races_dialog(void)
Definition dialogs.c:1230
popup_pillage_dialog
void popup_pillage_dialog(struct unit *punit, bv_extras extras)
Definition dialogs.c:338
popup_connect_msg
void popup_connect_msg(const char *headline, const char *message)
Definition dialogs.c:239
handmade_scenario_warning
bool handmade_scenario_warning(void)
Definition dialogs.c:1573
unit_select_dialog_update_real
void unit_select_dialog_update_real(void *unused)
Definition dialogs.c:386
races_toggles_set_sensitive
void races_toggles_set_sensitive(void)
Definition dialogs.c:1245
popup_combat_info
void popup_combat_info(int attacker_unit_id, int defender_unit_id, int attacker_hp, int defender_hp, bool make_att_veteran, bool make_def_veteran)
Definition dialogs.c:1583
request_action_confirmation
void request_action_confirmation(const char *expl, struct act_confirmation_data *data)
Definition dialogs.c:1607
popdown_all_game_dialogs
void popdown_all_game_dialogs(void)
Definition dialogs.c:1514
update_infra_dialog
void update_infra_dialog(void)
Definition infradlg.c:138
popup_musicset_suggestion_dialog
void popup_musicset_suggestion_dialog(void)
Definition soundset_dlg.c:109
popup_soundset_suggestion_dialog
void popup_soundset_suggestion_dialog(void)
Definition soundset_dlg.c:55
popup_theme_suggestion_dialog
bool popup_theme_suggestion_dialog(const char *theme_name)
Definition theme_dlg.c:46
popup_tileset_suggestion_dialog
void popup_tileset_suggestion_dialog(void)
Definition tileset_dlg.c:58
request_transport
bool request_transport(struct unit *cargo, struct tile *ptile)
Definition transportdlg.c:82
gui_proto_constructor.h
GUI_FUNC_PROTO
#define GUI_FUNC_PROTO(_type, _func,...)
Definition gui_proto_constructor.h:22
nation.h
lines
char * lines
Definition packhand.c:131
act_confirmation_data
Definition control.h:145
act_prob
Definition fc_types.h:1241
action
Definition actions.h:360
city
Definition city.h:320
extra_type
Definition extras.h:88
message
Definition messagewin_common.h:29
player
Definition player.h:247
tile
Definition tile.h:50
unit
Definition unit.h:138
support.h
terrain.h
unitlist.h
unit_select_dialog_update
void unit_select_dialog_update(void)
Definition update_queue.c:698