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/**********************************************************************/
35void 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/**********************************************************************/
45void popup_connect_msg(const char *headline, const char *message)
46{
47 /* PORTME */
48}
49
50/**********************************************************************/
53void popup_notify_dialog(const char *caption, const char *headline,
54 const char *lines)
55{
56 /* PORTME */
57}
58
59/**********************************************************************/
62void popup_races_dialog(struct player *pplayer)
63{
64 /* PORTME */
65}
66
67/**********************************************************************/
72{
73 /* PORTME */
74}
75
76/**********************************************************************/
79void unit_select_dialog_popup(struct tile *ptile)
80{
81 /* PORTME */
82}
83
84/**********************************************************************/
88{
89 /* PORTME */
90}
91
92/**********************************************************************/
95void races_update_pickable(bool nationset_change)
96{
97 /* PORTME */
98}
99
100/**********************************************************************/
105{
106 /* PORTME */
107}
108
109/**********************************************************************/
113{
114 /* PORTME */
115}
116
117/**********************************************************************/
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/**********************************************************************/
135void popup_incite_dialog(struct unit *actor, struct city *pcity, int cost,
136 const struct action *paction)
137{
138 /* PORTME */
139}
140
141/**********************************************************************/
145void popup_bribe_dialog(struct unit *actor, struct unit *punit, int cost,
146 const struct action *paction)
147{
148 /* PORTME */
149}
150
151/**********************************************************************/
155void popup_sabotage_dialog(struct unit *actor, struct city *pcity,
156 const struct action *paction)
157{
158 /* PORTME */
159}
160
161/***********************************************************************/
164void popup_upgrade_dialog(struct unit_list *punits)
165{
166 /* PORTME */
167}
168
169/**********************************************************************/
174{
175 /* PORTME */
176}
177
178/**********************************************************************/
181void popup_disband_dialog(struct unit_list *punits)
182{
183 /* PORTME */
184}
185
186/**********************************************************************/
191{
192 /* PORTME */
193}
194
195/**********************************************************************/
200{
201 /* PORTME */
202}
203
204/**********************************************************************/
209{
210 /* PORTME */
211}
212
213/**********************************************************************/
218{
219 /* PORTME */
220 return FALSE;
221}
222
223/**********************************************************************/
228{
229 /* PORTME */
230}
231
232/**********************************************************************/
238{
239 /* PORTME */
241}
242
243/**********************************************************************/
250{
251 /* PORTME */
253}
254
255/**********************************************************************/
262{
263 /* PORTME */
265}
266
267/**********************************************************************/
274{
275 /* PORTME */
276 return TILE_INDEX_NONE;
277}
278
279/**********************************************************************/
286{
287 /* PORTME */
288 return EXTRA_NONE;
289}
290
291/**********************************************************************/
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/**********************************************************************/
308{
309 /* PORTME */
310}
311
312/**********************************************************************/
319{
320 /* PORTME */
321}
322
323/**********************************************************************/
327{
328 /* PORTME */
329}
330
331/**********************************************************************/
334void show_tileset_error(bool fatal, const char *tset_name, const char *msg)
335{
336 /* PORTME */
337}
338
339/**********************************************************************/
344{
345 /* Just tell the client common code to handle this. */
346 return FALSE;
347}
348
349/**********************************************************************/
352bool gui_request_transport(struct unit *pcargo, struct tile *ptile)
353{
354 return FALSE; /* Unit was not handled here. */
355}
356
357/**********************************************************************/
361void 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/**********************************************************************/
371 struct act_confirmation_data *data)
372{
373 /* Just confirm */
375}
376
377/**********************************************************************/
380void gui_popup_image(const char *tag)
381{
382}
char * incite_cost
Definition comments.c:75
void action_confirmation(struct act_confirmation_data *data, bool confirm)
Definition control.c:1766
struct unit struct city struct unit * target_unit
Definition dialogs_g.h:56
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
Definition dialogs_g.h:55
struct unit * actor_unit
Definition dialogs_g.h:55
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
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
const char * caption
Definition dialogs_g.h:37
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
const char const char * headline
Definition dialogs_g.h:38
popup_notify_dialog
Definition dialogs_g.h:37
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
struct unit struct city struct unit struct tile * target_tile
Definition dialogs_g.h:57
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
struct unit struct city * target_city
Definition dialogs_g.h:56
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
struct unit struct city struct unit struct tile struct extra_type * target_extra
Definition dialogs_g.h:57
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
#define EXTRA_NONE
Definition extras.h:85
int Tech_type_id
Definition fc_types.h:377
#define IDENTITY_NUMBER_ZERO
Definition fc_types.h:92
void unit_select_dialog_popup(struct tile *ptile)
Definition dialogs.c:377
void popup_upgrade_dialog(struct unit_list *punits)
Definition dialogs.c:1435
void races_update_pickable(bool nationset_change)
Definition dialogs.c:731
void popup_notify_goto_dialog(const char *headline, const char *lines, const struct text_tag_list *tags, struct tile *ptile)
Definition dialogs.c:196
void show_tech_gained_dialog(Tech_type_id tech)
Definition dialogs.c:1524
void popup_races_dialog(struct player *pplayer)
Definition dialogs.c:1215
void popup_disband_dialog(struct unit_list *punits)
Definition dialogs.c:1473
void popdown_races_dialog(void)
Definition dialogs.c:1230
void popup_pillage_dialog(struct unit *punit, bv_extras extras)
Definition dialogs.c:338
void popup_connect_msg(const char *headline, const char *message)
Definition dialogs.c:239
void unit_select_dialog_update_real(void *unused)
Definition dialogs.c:386
void races_toggles_set_sensitive(void)
Definition dialogs.c:1245
void popdown_all_game_dialogs(void)
Definition dialogs.c:1514
void popup_musicset_suggestion_dialog(void)
Definition dialogs.c:3644
void popup_soundset_suggestion_dialog(void)
Definition dialogs.c:3636
void popup_tileset_suggestion_dialog(void)
Definition dialogs.c:3628
bool popup_theme_suggestion_dialog(const char *theme_name)
Definition dialogs.c:3652
int action_selection_target_extra(void)
Definition dialogs.c:285
int action_selection_target_tile(void)
Definition dialogs.c:273
int action_selection_actor_unit(void)
Definition dialogs.c:237
void popup_revolution_dialog(void)
Definition dialogs.c:112
void action_selection_close(void)
Definition dialogs.c:307
int action_selection_target_city(void)
Definition dialogs.c:249
bool gui_request_transport(struct unit *pcargo, struct tile *ptile)
Definition dialogs.c:352
bool gui_handmade_scenario_warning(void)
Definition dialogs.c:343
void gui_popup_image(const char *tag)
Definition dialogs.c:380
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
void gui_request_action_confirmation(const char *expl, struct act_confirmation_data *data)
Definition dialogs.c:370
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
void popup_sabotage_dialog(struct unit *actor, struct city *pcity, const struct action *paction)
Definition dialogs.c:155
int action_selection_target_unit(void)
Definition dialogs.c:261
void popup_incite_dialog(struct unit *actor, struct city *pcity, int cost, const struct action *paction)
Definition dialogs.c:135
char * lines
Definition packhand.c:131
Definition city.h:320
Definition tile.h:50
Definition unit.h:138
#define TRUE
Definition support.h:46
#define FALSE
Definition support.h:47
#define TILE_INDEX_NONE
Definition tile.h:48