Freeciv21
Develop your civilization from humble roots to a global empire
dialogs_g.h
Go to the documentation of this file.
1 /*__ ___ ***************************************
2 / \ / \ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3 \_ \ / __/ contributors. This file is part of Freeciv21.
4  _\ \ / /__ Freeciv21 is free software: you can redistribute it
5  \___ \____/ __/ and/or modify it under the terms of the GNU General
6  \_ _/ Public License as published by the Free Software
7  | @ @ \_ Foundation, either version 3 of the License,
8  | or (at your option) any later version.
9  _/ /\ You should have received a copy of the GNU
10  /o) (o/\ \_ General Public License along with Freeciv21.
11  \_____/ / If not, see https://www.gnu.org/licenses/.
12  \____/ ********************************************************/
13 #pragma once
14 
15 // utility
16 #include "support.h" // bool type
17 
18 // common
19 #include "actions.h"
20 #include "fc_types.h"
21 #include "featured_text.h" // struct text_tag_list
22 #include "nation.h" // Nation_type_id
23 #include "terrain.h" // enum tile_special_type
24 #include "unitlist.h"
25 
26 struct packet_nations_selected_info;
27 
28 void popup_notify_goto_dialog(const char *headline, const char *lines,
29  const struct text_tag_list *tags,
30  struct tile *ptile);
31 void popup_notify_dialog(const char *caption, const char *headline,
32  const char *lines);
33 void popup_connect_msg(const char *headline, const char *message);
34 void popup_races_dialog(struct player *pplayer);
35 void popdown_races_dialog(void);
36 void unit_select_dialog_popup(struct tile *ptile);
37 void unit_select_dialog_update(); // Defined in update_queue.c.
38 void unit_select_dialog_update_real(void *unused);
40 void races_update_pickable(bool nationset_change);
41 void popup_action_selection(struct unit *actor_unit,
42  struct city *target_city,
43  struct unit *target_unit,
44  struct tile *target_tile,
45  struct extra_type *target_extra,
46  const struct act_prob *act_probs);
47 
53 void action_selection_close(void);
54 void action_selection_refresh(struct unit *actor_unit,
55  struct city *target_city,
56  struct unit *target_unit,
57  struct tile *target_tile,
58  struct extra_type *target_extra,
59  const struct act_prob *act_probs);
61 void popup_incite_dialog(struct unit *actor, struct city *pcity, int cost,
62  const struct action *paction);
63 void popup_bribe_dialog(struct unit *actor, struct unit *punit, int cost,
64  const struct action *paction);
65 void popup_sabotage_dialog(struct unit *actor, struct city *pcity,
66  const struct action *paction);
67 void popup_pillage_dialog(struct unit *punit, bv_extras extras);
71 bool popup_theme_suggestion_dialog(const char *theme_name);
73 void popdown_all_game_dialogs(void);
char * extras
Definition: comments.cpp:34
int action_selection_target_extra(void)
Returns id of the target extra of the actions currently handled in action selection dialog when the a...
Definition: dialogs.cpp:3579
int action_selection_target_tile(void)
Returns id of the target tile of the actions currently handled in action selection dialog when the ac...
Definition: dialogs.cpp:3562
int action_selection_actor_unit(void)
Returns the id of the actor unit currently handled in action selection dialog when the action selecti...
Definition: dialogs.cpp:3528
void unit_select_dialog_update()
void popup_musicset_suggestion_dialog(void)
Ruleset (modpack) has suggested loading certain musicset.
Definition: dialogs.cpp:3461
void unit_select_dialog_popup(struct tile *ptile)
Popup a dialog window to select units on a particular tile.
Definition: dialogs.cpp:1022
void action_selection_close(void)
Closes the action selection dialog.
Definition: dialogs.cpp:3740
void races_update_pickable(bool nationset_change)
The server has changed the set of selectable nations.
Definition: dialogs.cpp:1049
int action_selection_target_city(void)
Returns id of the target city of the actions currently handled in action selection dialog when the ac...
Definition: dialogs.cpp:3545
void popup_notify_goto_dialog(const char *headline, const char *lines, const struct text_tag_list *tags, struct tile *ptile)
Popup a dialog to display information about an event that has a specific location.
Definition: dialogs.cpp:944
void show_tech_gained_dialog(Tech_type_id tech)
Player has gained a new tech.
Definition: dialogs.cpp:3754
void popup_soundset_suggestion_dialog(void)
Ruleset (modpack) has suggested loading certain soundset.
Definition: dialogs.cpp:3436
void popup_races_dialog(struct player *pplayer)
Popup the nation selection dialog.
Definition: dialogs.cpp:997
void popdown_races_dialog(void)
Close the nation selection dialog.
Definition: dialogs.cpp:1011
void popup_tileset_suggestion_dialog(void)
Ruleset (modpack) has suggested loading certain tileset.
Definition: dialogs.cpp:3405
void popup_pillage_dialog(struct unit *punit, bv_extras extras)
Popup a dialog asking the unit which improvement they would like to pillage.
Definition: dialogs.cpp:3321
void popup_notify_dialog(const char *caption, const char *headline, const char *lines)
Popup a generic dialog to display some generic information.
Definition: dialogs.cpp:970
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)
Updates the action selection dialog with new information.
Definition: dialogs.cpp:3610
bool popup_theme_suggestion_dialog(const char *theme_name)
Tileset (modpack) has suggested loading certain theme.
Definition: dialogs.cpp:3486
void popup_connect_msg(const char *headline, const char *message)
Popup a dialog to display connection message from server.
Definition: dialogs.cpp:956
void unit_select_dialog_update_real(void *unused)
Update the dialog window to select units on a particular tile.
Definition: dialogs.cpp:1034
void races_toggles_set_sensitive(void)
In the nation selection dialog, make already-taken nations unavailable.
Definition: dialogs.cpp:1061
void popup_action_selection(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)
Popup a dialog that allows the player to select what action a unit should take.
Definition: dialogs.cpp:1708
void popup_bribe_dialog(struct unit *actor, struct unit *punit, int cost, const struct action *paction)
Popup a dialog asking a diplomatic unit if it wishes to bribe the given enemy unit.
Definition: dialogs.cpp:3068
void popup_sabotage_dialog(struct unit *actor, struct city *pcity, const struct action *paction)
Popup a dialog asking a diplomatic unit if it wishes to sabotage the given enemy city.
Definition: dialogs.cpp:3263
int action_selection_target_unit(void)
Returns id of the target unit of the actions currently handled in action selection dialog when the ac...
Definition: dialogs.cpp:3596
void popup_incite_dialog(struct unit *actor, struct city *pcity, int cost, const struct action *paction)
Popup a window asking a diplomatic unit if it wishes to incite the given enemy city.
Definition: dialogs.cpp:3007
void action_selection_no_longer_in_progress_gui_specific(int actor_unit_id)
Let the non shared client code know that the action selection process no longer is in progress for th...
Definition: dialogs.cpp:1697
void popdown_all_game_dialogs(void)
This function is called when the client disconnects or the game is over.
Definition: dialogs.cpp:3496
int Tech_type_id
Definition: fc_types.h:294
char * caption
Definition: packhand.cpp:129
char * headline
Definition: packhand.cpp:130
char * lines
Definition: packhand.cpp:131
Definition: city.h:291
Definition: player.h:231
Definition: tile.h:42
Definition: unit.h:134