Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-stub/dialogs.c Source File

Freeciv-3.2

Loading...
Searching...
No Matches
dialogs.c
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
14#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18/* common */
19#include "game.h"
20#include "government.h"
21
22/* client */
23#include "control.h"
24
25/* gui main header */
26#include "gui_stub.h"
27
28#include "dialogs.h"
29
30/**********************************************************************/
35 void popup_notify_goto_dialog(const char *headline, const char *lines,
36 const struct text_tag_list *tags,
37 struct tile *ptile)
38{
39 /* PORTME */
40}
41
42/**********************************************************************/
45 void popup_connect_msg(const char *headline, const char *message)
46{
47 /* PORTME */
48}
49
50/**********************************************************************/
53 void popup_notify_dialog(const char *caption, const char *headline,
54 const char *lines)
55{
56 /* PORTME */
57}
58
59/**********************************************************************/
62 void popup_races_dialog(struct player *pplayer)
63{
64 /* PORTME */
65}
66
67/**********************************************************************/
71 void popdown_races_dialog(void)
72{
73 /* PORTME */
74}
75
76/**********************************************************************/
79 void unit_select_dialog_popup(struct tile *ptile)
80{
81 /* PORTME */
82}
83
84/**********************************************************************/
87 void unit_select_dialog_update_real(void *unused)
88{
89 /* PORTME */
90}
91
92/**********************************************************************/
95 void races_update_pickable(bool nationset_change)
96{
97 /* PORTME */
98}
99
100/**********************************************************************/
104 void races_toggles_set_sensitive(void)
105{
106 /* PORTME */
107}
108
109/**********************************************************************/
112 void popup_revolution_dialog(void)
113{
114 /* PORTME */
115}
116
117/**********************************************************************/
121 void popup_action_selection(struct unit *actor_unit,
122 struct city *target_city,
123 struct unit *target_unit,
124 struct tile *target_tile,
125 struct extra_type *target_extra,
126 const struct act_prob *act_probs)
127{
128 /* PORTME */
129}
130
131/**********************************************************************/
135 void popup_incite_dialog(struct unit *actor, struct city *pcity, int cost,
136 const struct action *paction)
137{
138 /* PORTME */
139}
140
141/**********************************************************************/
145 void popup_bribe_dialog(struct unit *actor, struct unit *punit, int cost,
146 const struct action *paction)
147{
148 /* PORTME */
149}
150
151/**********************************************************************/
155 void popup_sabotage_dialog(struct unit *actor, struct city *pcity,
156 const struct action *paction)
157{
158 /* PORTME */
159}
160
161/***********************************************************************/
164 void popup_upgrade_dialog(struct unit_list *punits)
165{
166 /* PORTME */
167}
168
169/**********************************************************************/
173 void popup_pillage_dialog(struct unit *punit, bv_extras may_pillage)
174{
175 /* PORTME */
176}
177
178/**********************************************************************/
181 void popup_disband_dialog(struct unit_list *punits)
182{
183 /* PORTME */
184}
185
186/**********************************************************************/
190 void popup_tileset_suggestion_dialog(void)
191{
192 /* PORTME */
193}
194
195/**********************************************************************/
199 void popup_soundset_suggestion_dialog(void)
200{
201 /* PORTME */
202}
203
204/**********************************************************************/
208 void popup_musicset_suggestion_dialog(void)
209{
210 /* PORTME */
211}
212
213/**********************************************************************/
217 bool popup_theme_suggestion_dialog(const char *theme_name)
218{
219 /* PORTME */
220 return FALSE;
221}
222
223/**********************************************************************/
227 void popdown_all_game_dialogs(void)
228{
229 /* PORTME */
230}
231
232/**********************************************************************/
237 int action_selection_actor_unit(void)
238{
239 /* PORTME */
240 return IDENTITY_NUMBER_ZERO;
241}
242
243/**********************************************************************/
249 int action_selection_target_city(void)
250{
251 /* PORTME */
252 return IDENTITY_NUMBER_ZERO;
253}
254
255/**********************************************************************/
261 int action_selection_target_unit(void)
262{
263 /* PORTME */
264 return IDENTITY_NUMBER_ZERO;
265}
266
267/**********************************************************************/
273 int action_selection_target_tile(void)
274{
275 /* PORTME */
276 return TILE_INDEX_NONE;
277}
278
279/**********************************************************************/
285 int action_selection_target_extra(void)
286{
287 /* PORTME */
288 return EXTRA_NONE;
289}
290
291/**********************************************************************/
294 void action_selection_refresh(struct unit *actor_unit,
295 struct city *target_city,
296 struct unit *target_unit,
297 struct tile *target_tile,
298 struct extra_type *target_extra,
299 const struct act_prob *act_probs)
300{
301 /* TODO: port me. */
302}
303
304/**********************************************************************/
307 void action_selection_close(void)
308{
309 /* PORTME */
310}
311
312/**********************************************************************/
318 void action_selection_no_longer_in_progress_gui_specific(int actor_id)
319{
320 /* PORTME */
321}
322
323/**********************************************************************/
326 void show_tech_gained_dialog(Tech_type_id tech)
327{
328 /* PORTME */
329}
330
331/**********************************************************************/
334 void show_tileset_error(bool fatal, const char *tset_name, const char *msg)
335{
336 /* PORTME */
337}
338
339/**********************************************************************/
343 bool gui_handmade_scenario_warning(void)
344{
345 /* Just tell the client common code to handle this. */
346 return FALSE;
347}
348
349/**********************************************************************/
352 bool gui_request_transport(struct unit *pcargo, struct tile *ptile)
353{
354 return FALSE; /* Unit was not handled here. */
355}
356
357/**********************************************************************/
361 void gui_popup_combat_info(int attacker_unit_id, int defender_unit_id,
362 int attacker_hp, int defender_hp,
363 bool make_att_veteran, bool make_def_veteran)
364{
365}
366
367/**********************************************************************/
370 void gui_request_action_confirmation(const char *expl,
371 struct act_confirmation_data *data)
372{
373 /* Just confirm */
374 action_confirmation(data, TRUE);
375}
incite_cost
char * incite_cost
Definition comments.c:74
action_confirmation
void action_confirmation(struct act_confirmation_data *data, bool confirm)
Definition control.c:1740
control.h
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
EXTRA_NONE
#define EXTRA_NONE
Definition extras.h:85
Tech_type_id
int Tech_type_id
Definition fc_types.h:380
IDENTITY_NUMBER_ZERO
#define IDENTITY_NUMBER_ZERO
Definition fc_types.h:92
game.h
government.h
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
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
popdown_all_game_dialogs
void popdown_all_game_dialogs(void)
Definition dialogs.c:1514
popup_musicset_suggestion_dialog
void popup_musicset_suggestion_dialog(void)
Definition dialogs.c:3644
popup_soundset_suggestion_dialog
void popup_soundset_suggestion_dialog(void)
Definition dialogs.c:3636
popup_tileset_suggestion_dialog
void popup_tileset_suggestion_dialog(void)
Definition dialogs.c:3628
popup_theme_suggestion_dialog
bool popup_theme_suggestion_dialog(const char *theme_name)
Definition dialogs.c:3652
action_selection_target_extra
int action_selection_target_extra(void)
Definition dialogs.c:285
action_selection_target_tile
int action_selection_target_tile(void)
Definition dialogs.c:273
action_selection_actor_unit
int action_selection_actor_unit(void)
Definition dialogs.c:237
popup_revolution_dialog
void popup_revolution_dialog(void)
Definition dialogs.c:112
action_selection_close
void action_selection_close(void)
Definition dialogs.c:307
action_selection_target_city
int action_selection_target_city(void)
Definition dialogs.c:249
gui_request_transport
bool gui_request_transport(struct unit *pcargo, struct tile *ptile)
Definition dialogs.c:352
gui_handmade_scenario_warning
bool gui_handmade_scenario_warning(void)
Definition dialogs.c:343
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 dialogs.c:294
gui_request_action_confirmation
void gui_request_action_confirmation(const char *expl, struct act_confirmation_data *data)
Definition dialogs.c:370
gui_popup_combat_info
void gui_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:361
popup_sabotage_dialog
void popup_sabotage_dialog(struct unit *actor, struct city *pcity, const struct action *paction)
Definition dialogs.c:155
action_selection_target_unit
int action_selection_target_unit(void)
Definition dialogs.c:261
popup_incite_dialog
void popup_incite_dialog(struct unit *actor, struct city *pcity, int cost, const struct action *paction)
Definition dialogs.c:135
dialogs.h
gui_stub.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
TRUE
#define TRUE
Definition support.h:46
FALSE
#define FALSE
Definition support.h:47
TILE_INDEX_NONE
#define TILE_INDEX_NONE
Definition tile.h:48