Freeciv-3.3
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_unit_dialog(struct unit *actor, struct unit *punit, int cost,
146 const struct action *paction)
147{
148 /* PORTME */
149}
150
151/**********************************************************************/
155void popup_bribe_stack_dialog(struct unit *actor, struct tile *ptile, int cost,
156 const struct action *paction)
157{
158 /* PORTME */
159}
160
161/**********************************************************************/
166 const struct action *paction)
167{
168 /* PORTME */
169}
170
171/***********************************************************************/
174void popup_upgrade_dialog(struct unit_list *punits)
175{
176 /* PORTME */
177}
178
179/**********************************************************************/
184{
185 /* PORTME */
186}
187
188/**********************************************************************/
191void popup_disband_dialog(struct unit_list *punits)
192{
193 /* PORTME */
194}
195
196/**********************************************************************/
201{
202 /* PORTME */
203}
204
205/**********************************************************************/
210{
211 /* PORTME */
212}
213
214/**********************************************************************/
219{
220 /* PORTME */
221}
222
223/**********************************************************************/
228{
229 /* PORTME */
230 return FALSE;
231}
232
233/**********************************************************************/
238{
239 /* PORTME */
240}
241
242/**********************************************************************/
248{
249 /* PORTME */
251}
252
253/**********************************************************************/
260{
261 /* PORTME */
263}
264
265/**********************************************************************/
272{
273 /* PORTME */
275}
276
277/**********************************************************************/
284{
285 /* PORTME */
286 return TILE_INDEX_NONE;
287}
288
289/**********************************************************************/
296{
297 /* PORTME */
298 return EXTRA_NONE;
299}
300
301/**********************************************************************/
305 struct city *target_city,
306 struct unit *target_unit,
307 struct tile *target_tile,
308 struct extra_type *target_extra,
309 const struct act_prob *act_probs)
310{
311 /* TODO: port me. */
312}
313
314/**********************************************************************/
318{
319 /* PORTME */
320}
321
322/**********************************************************************/
329{
330 /* PORTME */
331}
332
333/**********************************************************************/
337{
338 /* PORTME */
339}
340
341/**********************************************************************/
344void show_tileset_error(bool fatal, const char *tset_name, const char *msg)
345{
346 /* PORTME */
347}
348
349/**********************************************************************/
354{
355 /* Just tell the client common code to handle this. */
356 return FALSE;
357}
358
359/**********************************************************************/
362bool gui_request_transport(struct unit *pcargo, struct tile *ptile)
363{
364 return FALSE; /* Unit was not handled here. */
365}
366
367/**********************************************************************/
371void gui_popup_combat_info(int attacker_unit_id, int defender_unit_id,
372 int attacker_hp, int defender_hp,
373 bool make_att_veteran, bool make_def_veteran)
374{
375}
376
377/**********************************************************************/
381 struct act_confirmation_data *data)
382{
383 /* Just confirm */
385}
386
387/**********************************************************************/
390void gui_popup_image(const char *tag)
391{
392}
char * incite_cost
Definition comments.c:76
void action_confirmation(struct act_confirmation_data *data, bool confirm)
Definition control.c:1766
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
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 struct unit int const struct action *paction struct unit struct city const struct action *paction const char * expl
Definition dialogs_g.h:94
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
Definition dialogs_g.h:77
struct unit struct city struct unit * target_unit
Definition dialogs_g.h:56
popup_action_selection
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 struct unit * actor
Definition dialogs_g.h:73
struct unit * actor_unit
Definition dialogs_g.h:55
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 * 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 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
Definition dialogs_g.h:78
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
#define EXTRA_NONE
Definition extras.h:85
int Tech_type_id
Definition fc_types.h:236
#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 show_tileset_error(bool fatal, const char *tset_name, const char *msg)
Definition dialogs.c:1540
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:295
int action_selection_target_tile(void)
Definition dialogs.c:283
int action_selection_actor_unit(void)
Definition dialogs.c:247
void popup_bribe_stack_dialog(struct unit *actor, struct tile *ptile, int cost, const struct action *paction)
Definition dialogs.c:155
void popup_revolution_dialog(void)
Definition dialogs.c:112
void action_selection_close(void)
Definition dialogs.c:317
int action_selection_target_city(void)
Definition dialogs.c:259
bool gui_request_transport(struct unit *pcargo, struct tile *ptile)
Definition dialogs.c:362
bool gui_handmade_scenario_warning(void)
Definition dialogs.c:353
void gui_popup_image(const char *tag)
Definition dialogs.c:390
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:304
void gui_request_action_confirmation(const char *expl, struct act_confirmation_data *data)
Definition dialogs.c:380
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:371
int action_selection_target_unit(void)
Definition dialogs.c:271
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:317
Definition tile.h:50
Definition unit.h:140
#define TRUE
Definition support.h:46
#define FALSE
Definition support.h:47
#define TILE_INDEX_NONE
Definition tile.h:48