Freeciv-3.4
|
#include "astring.h"
#include "fcintl.h"
#include "log.h"
#include "actions.h"
#include "game.h"
#include "movement.h"
#include "research.h"
#include "specialist.h"
#include "traderoutes.h"
#include "unitlist.h"
#include "client_main.h"
#include "climisc.h"
#include "control.h"
#include "text.h"
#include "citydlg.h"
#include "colors.h"
#include "dialogs.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_tilespec.h"
#include "mapview.h"
#include "repodlgs.h"
#include "themespec.h"
#include "widget.h"
#include "dialogs_g.h"
Go to the source code of this file.
Data Structures | |
struct | diplomat_dialog |
struct | small_diplomat_dialog |
Typedefs | |
typedef int(* | act_func) (struct widget *) |
The action selection is done.
Definition at line 83 of file action_dialog.c.
Referenced by act_sel_done_secondary(), and popdown_diplomat_dialog().
A follow up question about the selected action is done.
Definition at line 122 of file action_dialog.c.
Referenced by exit_spy_tgt_dlg_callback(), popdown_bribe_dialog(), popdown_incite_dialog(), popup_bribe_stack_dialog(), popup_bribe_unit_dialog(), popup_incite_dialog(), popup_sabotage_dialog(), sabotage_impr_callback(), spy_steal_callback(), and spy_steal_popup_shared().
Delay selection of what action to take.
Definition at line 636 of file action_dialog.c.
|
static |
Add an entry for an action in the action choice dialog.
Definition at line 898 of file action_dialog.c.
Returns the id of the actor unit currently handled in action selection dialog when the action selection dialog is open. Returns IDENTITY_NUMBER_ZERO if no action selection dialog is open.
Definition at line 1186 of file action_dialog.c.
Closes the action selection dialog
Definition at line 1275 of file action_dialog.c.
Let the non shared client code know that the action selection process no longer is in progress for the specified unit.
This allows the client to clean up any client specific assumptions.
Definition at line 135 of file action_dialog.c.
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 at line 1258 of file action_dialog.c.
Returns id of the target city of the actions currently handled in action selection dialog when the action selection dialog is open and it has a city target. Returns IDENTITY_NUMBER_ZERO if no action selection dialog is open or no city target is present in the action selection dialog.
Definition at line 1201 of file action_dialog.c.
Returns id of the target extra of the actions currently handled in action selection dialog when the action selection dialog is open and it has an extra target. Returns EXTRA_NONE if no action selection dialog is open or no extra target is present in the action selection dialog.
Definition at line 1246 of file action_dialog.c.
Returns id of the target tile of the actions currently handled in action selection dialog when the action selection dialog is open and it has a tile target. Returns TILE_INDEX_NONE if no action selection dialog is open.
Definition at line 1231 of file action_dialog.c.
Returns id of the target unit of the actions currently handled in action selection dialog when the action selection dialog is open and it has a unit target. Returns IDENTITY_NUMBER_ZERO if no action selection dialog is open or no unit target is present in the action selection dialog.
Definition at line 1216 of file action_dialog.c.
User interacted with bribe dialog window.
Definition at line 1842 of file action_dialog.c.
Referenced by popup_bribe_stack_dialog(), and popup_bribe_unit_dialog().
Ask the server how much the bribe costs
Definition at line 673 of file action_dialog.c.
User confirmed stack bribe.
Definition at line 1871 of file action_dialog.c.
Referenced by popup_bribe_stack_dialog().
Ask the server how much the bribe costs
Definition at line 651 of file action_dialog.c.
User confirmed unit bribe.
Definition at line 1854 of file action_dialog.c.
Referenced by popup_bribe_unit_dialog().
Close diplomat dialog.
Definition at line 841 of file action_dialog.c.
Referenced by popup_action_selection().
User interacted with diplomat dialog.
Definition at line 188 of file action_dialog.c.
Referenced by popup_action_selection(), and popup_sabotage_dialog().
Ask the server how much the revolt is going to cost us
Definition at line 592 of file action_dialog.c.
User confirmed incite
Definition at line 1590 of file action_dialog.c.
Referenced by popup_incite_dialog().
Close bribe dialog.
Definition at line 1887 of file action_dialog.c.
Referenced by popup_bribe_stack_dialog(), and popup_bribe_unit_dialog().
Close incite dialog.
Definition at line 1608 of file action_dialog.c.
Referenced by popup_incite_dialog().
Exit spy's steal or sabotage dialog.
Definition at line 278 of file action_dialog.c.
Referenced by popup_sabotage_dialog(), and spy_steal_popup_shared().
User clicked "Found City"
Definition at line 693 of file action_dialog.c.
Get the non targeted version of an action so it, if enabled, can appear in the target selection dialog.
Definition at line 145 of file action_dialog.c.
Get the production targeted version of an action so it, if enabled, can appear in the target selection dialog.
Definition at line 168 of file action_dialog.c.
User interacted with Incite Revolt dialog window.
Definition at line 1578 of file action_dialog.c.
Referenced by popup_incite_dialog().
Popdown a dialog asking a diplomatic unit if it wishes to bribe the given enemy unit.
Definition at line 1900 of file action_dialog.c.
Referenced by diplomat_bribe_stack_yes_callback(), diplomat_bribe_unit_yes_callback(), and exit_bribe_dlg_callback().
Popdown a dialog giving a diplomatic unit some options when moving into the target tile.
Definition at line 854 of file action_dialog.c.
Referenced by action_selection_close(), diplomat_bribe_stack_callback(), diplomat_bribe_unit_callback(), diplomat_close_callback(), diplomat_incite_callback(), exit_spy_tgt_dlg_callback(), found_city_callback(), sabotage_impr_callback(), simple_action_callback(), spy_incite_callback(), spy_sabotage_esc_request(), spy_sabotage_request(), spy_steal_callback(), spy_steal_popup_shared(), spy_strike_bld_request(), and upgrade_callback().
Popdown a window asking a diplomatic unit if it wishes to incite the given enemy city.
Definition at line 1621 of file action_dialog.c.
Referenced by diplomat_incite_yes_callback(), and exit_incite_dlg_callback().
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 at line 967 of file action_dialog.c.
void popup_bribe_stack_dialog | ( | struct unit * | actor, |
struct tile * | ptile, | ||
int | cost, | ||
const struct action * | paction | ||
) |
Popup a dialog asking a diplomatic unit if it wishes to bribe the given enemy unit.
Definition at line 2083 of file action_dialog.c.
void popup_bribe_unit_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 at line 1918 of file action_dialog.c.
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 at line 1639 of file action_dialog.c.
void popup_sabotage_dialog | ( | struct unit * | actor, |
struct city * | pcity, | ||
const struct action * | paction | ||
) |
Pops-up the Spy sabotage dialog, upon return of list of available improvements requested by the above function.
Definition at line 1333 of file action_dialog.c.
User selected what to sabotage.
Definition at line 1288 of file action_dialog.c.
Referenced by popup_sabotage_dialog().
User selected an action from the choice dialog and the action has no special needs.
Definition at line 729 of file action_dialog.c.
Ask the server how much the revolt is going to cost us
Definition at line 614 of file action_dialog.c.
Requests up-to-date list of improvements, the return of which will trigger the popup_sabotage_dialog() function. (Escape version)
Definition at line 244 of file action_dialog.c.
Requests up-to-date list of improvements, the return of which will trigger the popup_sabotage_dialog() function.
Definition at line 222 of file action_dialog.c.
User selected which tech spy steals.
Definition at line 294 of file action_dialog.c.
Referenced by spy_steal_popup_shared().
User interacted with spy's steal dialog window.
Definition at line 266 of file action_dialog.c.
Referenced by spy_steal_popup_shared().
Popup spy tech stealing dialog for "Targeted Steal Tech Escape Expected".
Definition at line 583 of file action_dialog.c.
Popup spy tech stealing dialog for "Targeted Steal Tech".
Definition at line 574 of file action_dialog.c.
Popup spy tech stealing dialog.
Definition at line 330 of file action_dialog.c.
Requests up-to-date list of improvements, the return of which will trigger the popup_sabotage_dialog() function.
Definition at line 201 of file action_dialog.c.
User clicked "Upgrade Unit"
Definition at line 709 of file action_dialog.c.
|
static |
Definition at line 871 of file action_dialog.c.
|
static |
Definition at line 1837 of file action_dialog.c.
Referenced by bribe_dlg_window_callback(), diplomat_bribe_stack_yes_callback(), diplomat_bribe_unit_yes_callback(), popdown_bribe_dialog(), popup_bribe_stack_dialog(), and popup_bribe_unit_dialog().
Definition at line 78 of file action_dialog.c.
|
static |
Definition at line 76 of file action_dialog.c.
Referenced by action_selection_actor_unit(), action_selection_target_city(), action_selection_target_extra(), action_selection_target_tile(), action_selection_target_unit(), diplomat_bribe_stack_callback(), diplomat_bribe_unit_callback(), diplomat_dlg_window_callback(), diplomat_incite_callback(), exit_spy_tgt_dlg_callback(), found_city_callback(), popdown_diplomat_dialog(), popup_action_selection(), popup_sabotage_dialog(), simple_action_callback(), spy_incite_callback(), spy_sabotage_esc_request(), spy_sabotage_request(), spy_steal_callback(), spy_steal_dlg_window_callback(), spy_steal_esc_popup(), spy_steal_popup(), spy_steal_popup_shared(), spy_strike_bld_request(), and upgrade_callback().
|
static |
Definition at line 1573 of file action_dialog.c.
Referenced by diplomat_incite_yes_callback(), incite_dlg_window_callback(), popdown_incite_dialog(), and popup_incite_dialog().
Definition at line 77 of file action_dialog.c.
|
extern |
Definition at line 108 of file gui_main.c.
Referenced by popdown_bribe_dialog(), popdown_diplomat_dialog(), popdown_incite_dialog(), popup_action_selection(), popup_bribe_stack_dialog(), popup_bribe_unit_dialog(), popup_incite_dialog(), and popup_sabotage_dialog().