Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui-stub/dialogs.c Source File

Freeciv-3.1

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/* gui main header */
23#include "gui_stub.h"
24
25#include "dialogs.h"
26
27/**********************************************************************/
32 void popup_notify_goto_dialog(const char *headline, const char *lines,
33 const struct text_tag_list *tags,
34 struct tile *ptile)
35{
36 /* PORTME */
37}
38
39/**********************************************************************/
42 void popup_connect_msg(const char *headline, const char *message)
43{
44 /* PORTME */
45}
46
47/**********************************************************************/
50 void popup_notify_dialog(const char *caption, const char *headline,
51 const char *lines)
52{
53 /* PORTME */
54}
55
56/**********************************************************************/
59 void popup_races_dialog(struct player *pplayer)
60{
61 /* PORTME */
62}
63
64/**********************************************************************/
68 void popdown_races_dialog(void)
69{
70 /* PORTME */
71}
72
73/**********************************************************************/
76 void unit_select_dialog_popup(struct tile *ptile)
77{
78 /* PORTME */
79}
80
81/**********************************************************************/
84 void unit_select_dialog_update_real(void *unused)
85{
86 /* PORTME */
87}
88
89/**********************************************************************/
92 void races_update_pickable(bool nationset_change)
93{
94 /* PORTME */
95}
96
97/**********************************************************************/
101 void races_toggles_set_sensitive(void)
102{
103 /* PORTME */
104}
105
106/**********************************************************************/
109 void popup_revolution_dialog(void)
110{
111 /* PORTME */
112}
113
114/**********************************************************************/
118 void popup_action_selection(struct unit *actor_unit,
119 struct city *target_city,
120 struct unit *target_unit,
121 struct tile *target_tile,
122 struct extra_type *target_extra,
123 const struct act_prob *act_probs)
124{
125 /* PORTME */
126}
127
128/**********************************************************************/
132 void popup_incite_dialog(struct unit *actor, struct city *pcity, int cost,
133 const struct action *paction)
134{
135 /* PORTME */
136}
137
138/**********************************************************************/
142 void popup_bribe_dialog(struct unit *actor, struct unit *punit, int cost,
143 const struct action *paction)
144{
145 /* PORTME */
146}
147
148/**********************************************************************/
152 void popup_sabotage_dialog(struct unit *actor, struct city *pcity,
153 const struct action *paction)
154{
155 /* PORTME */
156}
157
158/***********************************************************************/
161 void popup_upgrade_dialog(struct unit_list *punits)
162{
163 /* PORTME */
164}
165
166/**********************************************************************/
170 void popup_pillage_dialog(struct unit *punit, bv_extras may_pillage)
171{
172 /* PORTME */
173}
174
175/**********************************************************************/
178 void popup_disband_dialog(struct unit_list *punits)
179{
180 /* PORTME */
181}
182
183/**********************************************************************/
187 void popup_tileset_suggestion_dialog(void)
188{
189 /* PORTME */
190}
191
192/**********************************************************************/
196 void popup_soundset_suggestion_dialog(void)
197{
198 /* PORTME */
199}
200
201/**********************************************************************/
205 void popup_musicset_suggestion_dialog(void)
206{
207 /* PORTME */
208}
209
210/**********************************************************************/
214 bool popup_theme_suggestion_dialog(const char *theme_name)
215{
216 /* PORTME */
217 return FALSE;
218}
219
220/**********************************************************************/
224 void popdown_all_game_dialogs(void)
225{
226 /* PORTME */
227}
228
229/**********************************************************************/
234 int action_selection_actor_unit(void)
235{
236 /* PORTME */
237 return IDENTITY_NUMBER_ZERO;
238}
239
240/**********************************************************************/
246 int action_selection_target_city(void)
247{
248 /* PORTME */
249 return IDENTITY_NUMBER_ZERO;
250}
251
252/**********************************************************************/
258 int action_selection_target_unit(void)
259{
260 /* PORTME */
261 return IDENTITY_NUMBER_ZERO;
262}
263
264/**********************************************************************/
270 int action_selection_target_tile(void)
271{
272 /* PORTME */
273 return TILE_INDEX_NONE;
274}
275
276/**********************************************************************/
282 int action_selection_target_extra(void)
283{
284 /* PORTME */
285 return EXTRA_NONE;
286}
287
288/**********************************************************************/
291 void action_selection_refresh(struct unit *actor_unit,
292 struct city *target_city,
293 struct unit *target_unit,
294 struct tile *target_tile,
295 struct extra_type *target_extra,
296 const struct act_prob *act_probs)
297{
298 /* TODO: port me. */
299}
300
301/**********************************************************************/
304 void action_selection_close(void)
305{
306 /* PORTME */
307}
308
309/**********************************************************************/
315 void action_selection_no_longer_in_progress_gui_specific(int actor_id)
316{
317 /* PORTME */
318}
319
320/**********************************************************************/
323 void show_tech_gained_dialog(Tech_type_id tech)
324{
325 /* PORTME */
326}
327
328/**********************************************************************/
331 void show_tileset_error(bool fatal, const char *tset_name, const char *msg)
332{
333 /* PORTME */
334}
335
336/**********************************************************************/
340 bool gui_handmade_scenario_warning(void)
341{
342 /* Just tell the client common code to handle this. */
343 return FALSE;
344}
345
346/**********************************************************************/
349 bool gui_request_transport(struct unit *pcargo, struct tile *ptile)
350{
351 return FALSE; /* Unit was not handled here. */
352}
353
354/**********************************************************************/
358 void gui_popup_combat_info(int attacker_unit_id, int defender_unit_id,
359 int attacker_hp, int defender_hp,
360 bool make_att_veteran, bool make_def_veteran)
361{
362}
target_unit
struct unit struct city struct unit * target_unit
Definition dialogs_g.h:55
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:84
popup_action_selection
popup_action_selection
Definition dialogs_g.h:54
actor_unit
struct unit * actor_unit
Definition dialogs_g.h:54
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:72
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:72
caption
const char * caption
Definition dialogs_g.h:36
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:68
headline
const char const char * headline
Definition dialogs_g.h:37
popup_notify_dialog
popup_notify_dialog
Definition dialogs_g.h:36
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:85
target_tile
struct unit struct city struct unit struct tile * target_tile
Definition dialogs_g.h:56
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:73
target_city
struct unit struct city * target_city
Definition dialogs_g.h:55
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:73
target_extra
struct unit struct city struct unit struct tile struct extra_type * target_extra
Definition dialogs_g.h:56
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:85
EXTRA_NONE
#define EXTRA_NONE
Definition extras.h:82
Tech_type_id
int Tech_type_id
Definition fc_types.h:347
IDENTITY_NUMBER_ZERO
#define IDENTITY_NUMBER_ZERO
Definition fc_types.h:82
game.h
government.h
unit_select_dialog_popup
void unit_select_dialog_popup(struct tile *ptile)
Definition dialogs.c:382
popup_upgrade_dialog
void popup_upgrade_dialog(struct unit_list *punits)
Definition dialogs.c:1444
races_update_pickable
void races_update_pickable(bool nationset_change)
Definition dialogs.c:737
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:194
show_tech_gained_dialog
void show_tech_gained_dialog(Tech_type_id tech)
Definition dialogs.c:1533
popup_races_dialog
void popup_races_dialog(struct player *pplayer)
Definition dialogs.c:1223
popup_disband_dialog
void popup_disband_dialog(struct unit_list *punits)
Definition dialogs.c:1482
popdown_races_dialog
void popdown_races_dialog(void)
Definition dialogs.c:1238
popup_pillage_dialog
void popup_pillage_dialog(struct unit *punit, bv_extras extras)
Definition dialogs.c:343
popup_connect_msg
void popup_connect_msg(const char *headline, const char *message)
Definition dialogs.c:243
unit_select_dialog_update_real
void unit_select_dialog_update_real(void *unused)
Definition dialogs.c:391
races_toggles_set_sensitive
void races_toggles_set_sensitive(void)
Definition dialogs.c:1253
popdown_all_game_dialogs
void popdown_all_game_dialogs(void)
Definition dialogs.c:1523
popup_musicset_suggestion_dialog
void popup_musicset_suggestion_dialog(void)
Definition dialogs.c:3635
popup_soundset_suggestion_dialog
void popup_soundset_suggestion_dialog(void)
Definition dialogs.c:3627
popup_tileset_suggestion_dialog
void popup_tileset_suggestion_dialog(void)
Definition dialogs.c:3619
popup_theme_suggestion_dialog
bool popup_theme_suggestion_dialog(const char *theme_name)
Definition dialogs.c:3643
action_selection_target_extra
int action_selection_target_extra(void)
Definition dialogs.c:282
action_selection_target_tile
int action_selection_target_tile(void)
Definition dialogs.c:270
action_selection_actor_unit
int action_selection_actor_unit(void)
Definition dialogs.c:234
popup_revolution_dialog
void popup_revolution_dialog(void)
Definition dialogs.c:109
action_selection_close
void action_selection_close(void)
Definition dialogs.c:304
action_selection_target_city
int action_selection_target_city(void)
Definition dialogs.c:246
gui_request_transport
bool gui_request_transport(struct unit *pcargo, struct tile *ptile)
Definition dialogs.c:349
gui_handmade_scenario_warning
bool gui_handmade_scenario_warning(void)
Definition dialogs.c:340
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:291
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:358
popup_sabotage_dialog
void popup_sabotage_dialog(struct unit *actor, struct city *pcity, const struct action *paction)
Definition dialogs.c:152
action_selection_target_unit
int action_selection_target_unit(void)
Definition dialogs.c:258
popup_incite_dialog
void popup_incite_dialog(struct unit *actor, struct city *pcity, int cost, const struct action *paction)
Definition dialogs.c:132
dialogs.h
gui_stub.h
lines
char * lines
Definition packhand.c:129
act_prob
Definition fc_types.h:1092
action
Definition actions.h:379
city
Definition city.h:309
extra_type
Definition extras.h:85
message
Definition messagewin_common.h:29
player
Definition player.h:249
tile
Definition tile.h:49
unit
Definition unit.h:138
FALSE
#define FALSE
Definition support.h:47
TILE_INDEX_NONE
#define TILE_INDEX_NONE
Definition tile.h:47