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.
A follow up question about the selected action is done.
Definition at line 121 of file action_dialog.c.
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.
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.
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.
Close diplomat dialog.
Definition at line 833 of file action_dialog.c.
User interacted with diplomat dialog.
Definition at line 187 of file action_dialog.c.
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.
Close bribe dialog.
Definition at line 1878 of file action_dialog.c.
Close incite dialog.
Definition at line 1599 of file action_dialog.c.
Exit spy's steal or sabotage dialog.
Definition at line 277 of file action_dialog.c.
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.
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 popdown_all_game_dialogs().
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 popdown_all_game_dialogs().
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 popdown_all_game_dialogs().
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 2073 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.
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.
User interacted with spy's steal dialog window.
Definition at line 265 of file action_dialog.c.
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.
Definition at line 77 of file action_dialog.c.
|
static |
Definition at line 75 of file action_dialog.c.
|
static |
Definition at line 1564 of file action_dialog.c.
Definition at line 76 of file action_dialog.c.
|
extern |
Definition at line 108 of file gui_main.c.