Freeciv-3.3
|
#include "astring.h"
#include "fcintl.h"
#include "log.h"
#include "actions.h"
#include "game.h"
#include "movement.h"
#include "research.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 82 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 121 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 635 of file action_dialog.c.
|
static |
Add an entry for an action in the action choice dialog.
Definition at line 890 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 1177 of file action_dialog.c.
Closes the action selection dialog
Definition at line 1266 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 134 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 1249 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 1192 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 1237 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 1222 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 1207 of file action_dialog.c.
User interacted with bribe dialog window.
Definition at line 1833 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 672 of file action_dialog.c.
User confirmed stack bribe.
Definition at line 1862 of file action_dialog.c.
Referenced by popup_bribe_stack_dialog().
Ask the server how much the bribe costs
Definition at line 650 of file action_dialog.c.
User confirmed unit bribe.
Definition at line 1845 of file action_dialog.c.
Referenced by popup_bribe_unit_dialog().
Close diplomat dialog.
Definition at line 833 of file action_dialog.c.
Referenced by popup_action_selection().
User interacted with diplomat dialog.
Definition at line 187 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 591 of file action_dialog.c.
User confirmed incite
Definition at line 1581 of file action_dialog.c.
Referenced by popup_incite_dialog().
Close bribe dialog.
Definition at line 1878 of file action_dialog.c.
Referenced by popup_bribe_stack_dialog(), and popup_bribe_unit_dialog().
Close incite dialog.
Definition at line 1599 of file action_dialog.c.
Referenced by popup_incite_dialog().
Exit spy's steal or sabotage dialog.
Definition at line 277 of file action_dialog.c.
Referenced by popup_sabotage_dialog(), and spy_steal_popup_shared().
User clicked "Found City"
Definition at line 692 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 144 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 167 of file action_dialog.c.
User interacted with Incite Revolt dialog window.
Definition at line 1569 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 1891 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 846 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 1612 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 959 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 2074 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 1909 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 1630 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 1324 of file action_dialog.c.
User selected what to sabotage.
Definition at line 1279 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 728 of file action_dialog.c.
Ask the server how much the revolt is going to cost us
Definition at line 613 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 243 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 221 of file action_dialog.c.
User selected which tech spy steals.
Definition at line 293 of file action_dialog.c.
Referenced by spy_steal_popup_shared().
User interacted with spy's steal dialog window.
Definition at line 265 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 582 of file action_dialog.c.
Popup spy tech stealing dialog for "Targeted Steal Tech".
Definition at line 573 of file action_dialog.c.
Popup spy tech stealing dialog.
Definition at line 329 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 200 of file action_dialog.c.
User clicked "Upgrade Unit"
Definition at line 708 of file action_dialog.c.
|
static |
Definition at line 863 of file action_dialog.c.
|
static |
Definition at line 1828 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 77 of file action_dialog.c.
|
static |
Definition at line 75 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 1564 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 76 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().