Freeciv-3.4
|
#include <gtk/gtk.h>
#include "astring.h"
#include "support.h"
#include "actions.h"
#include "game.h"
#include "traderoutes.h"
#include "movement.h"
#include "research.h"
#include "specialist.h"
#include "unit.h"
#include "unitlist.h"
#include "dialogs_g.h"
#include "chatline.h"
#include "choice_dialog.h"
#include "client_main.h"
#include "climisc.h"
#include "connectdlg_common.h"
#include "control.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "mapview.h"
#include "packhand.h"
#include "text.h"
#include "citydlg.h"
#include "dialogs.h"
#include "unitselextradlg.h"
#include "unitselunitdlg.h"
#include "wldlg.h"
Go to the source code of this file.
Data Structures | |
struct | action_data |
struct | _FcActionRow |
struct | _FcActionRowClass |
Macros | |
#define | BUTTON_NEW_UNIT_TGT (ACTION_COUNT + 1) |
#define | BUTTON_NEW_EXTRA_TGT (BUTTON_NEW_UNIT_TGT + 1) |
#define | BUTTON_LOCATION (BUTTON_NEW_EXTRA_TGT + 1) |
#define | BUTTON_WAIT (BUTTON_LOCATION + 1) |
#define | BUTTON_CANCEL (BUTTON_WAIT + 1) |
#define | BUTTON_COUNT (BUTTON_CANCEL + 1) |
#define | BUTTON_NOT_THERE -1 |
#define | FC_TYPE_ACTION_ROW (fc_action_row_get_type()) |
#define BUTTON_CANCEL (BUTTON_WAIT + 1) |
Definition at line 60 of file action_dialog.c.
#define BUTTON_COUNT (BUTTON_CANCEL + 1) |
Definition at line 61 of file action_dialog.c.
#define BUTTON_LOCATION (BUTTON_NEW_EXTRA_TGT + 1) |
Definition at line 58 of file action_dialog.c.
#define BUTTON_NEW_EXTRA_TGT (BUTTON_NEW_UNIT_TGT + 1) |
Definition at line 57 of file action_dialog.c.
#define BUTTON_NEW_UNIT_TGT (ACTION_COUNT + 1) |
Definition at line 56 of file action_dialog.c.
#define BUTTON_NOT_THERE -1 |
Definition at line 63 of file action_dialog.c.
#define BUTTON_WAIT (BUTTON_LOCATION + 1) |
Definition at line 59 of file action_dialog.c.
#define FC_TYPE_ACTION_ROW (fc_action_row_get_type()) |
Definition at line 97 of file action_dialog.c.
|
static |
Create a new action data structure that can be stored in the dialogs.
Definition at line 165 of file action_dialog.c.
Action selection dialog has been canceled
Definition at line 1376 of file action_dialog.c.
Action selection dialog has been closed
Definition at line 1385 of file action_dialog.c.
Action selection dialog has been destroyed
Definition at line 1367 of file action_dialog.c.
Callback from action selection dialog for "Show Location".
Definition at line 1338 of file action_dialog.c.
Callback from action selection dialog for "Change extra target".
Definition at line 1283 of file action_dialog.c.
Callback from action selection dialog for "Change unit target".
Definition at line 1212 of file action_dialog.c.
Delay selection of what action to take.
Definition at line 1352 of file action_dialog.c.
|
static |
Show the user the action if it is enabled.
Definition at line 1422 of file action_dialog.c.
|
static |
Update an existing button.
Definition at line 1460 of file action_dialog.c.
|
static |
Action table cell bind function
Definition at line 706 of file action_dialog.c.
Referenced by create_advances_list(), and create_improvements_list().
|
static |
Action table cell setup function
Definition at line 721 of file action_dialog.c.
Referenced by create_advances_list(), and create_improvements_list().
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 1736 of file action_dialog.c.
Closes the action selection dialog
Definition at line 1885 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 254 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 1806 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 1750 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 1794 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 1779 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 1764 of file action_dialog.c.
User responded to bribe stack dialog
Definition at line 551 of file action_dialog.c.
User responded to bribe unit dialog
Definition at line 532 of file action_dialog.c.
|
static |
Create spy's tech stealing dialog
Definition at line 731 of file action_dialog.c.
|
static |
Creates spy's building sabotaging dialog
Definition at line 915 of file action_dialog.c.
Move the queue of units that need user input forward unless the current unit is going to need more input.
Definition at line 194 of file action_dialog.c.
Move the queue of units that need user input forward since the current unit doesn't require the extra input any more.
Definition at line 241 of file action_dialog.c.
|
static |
Initialization method for FcActionRow class
Definition at line 133 of file action_dialog.c.
Finalizing method for FcActionRow
Definition at line 119 of file action_dialog.c.
Referenced by fc_action_row_class_init().
|
static |
Initialization method for FcActionRow
Definition at line 144 of file action_dialog.c.
|
static |
FcActionRow creation method
Definition at line 152 of file action_dialog.c.
Referenced by create_advances_list(), and create_improvements_list().
User selected build city from the choice dialog
Definition at line 496 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 264 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 287 of file action_dialog.c.
User has responded to incite dialog
Definition at line 1103 of file action_dialog.c.
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 1494 of file action_dialog.c.
void popup_bribe_stack_dialog | ( | struct unit * | actor, |
struct tile * | ptile, | ||
int | cost, | ||
const struct action * | paction | ||
) |
Popup stack bribe dialog
Definition at line 609 of file action_dialog.c.
void popup_bribe_unit_dialog | ( | struct unit * | actor, |
struct unit * | punit, | ||
int | cost, | ||
const struct action * | paction | ||
) |
Popup unit bribe dialog
Definition at line 570 of file action_dialog.c.
void popup_incite_dialog | ( | struct unit * | actor, |
struct city * | pcity, | ||
int | cost, | ||
const struct action * | paction | ||
) |
Popup the yes/no dialog for inciting, since we know the cost now
Definition at line 1122 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 1087 of file action_dialog.c.
User selected an action from the choice dialog that needs details from the server.
Definition at line 422 of file action_dialog.c.
User selected an action from the choice dialog and the action has no special needs.
Definition at line 308 of file action_dialog.c.
|
static |
User selected entry in steal advances dialog
Definition at line 681 of file action_dialog.c.
User responded to steal advances dialog
Definition at line 648 of file action_dialog.c.
|
static |
User has selected new building from spy's sabotage dialog
Definition at line 890 of file action_dialog.c.
User has responded to spy's sabotage building dialog
Definition at line 850 of file action_dialog.c.
Popup tech stealing dialog with list of possible techs for "Targeted Steal Tech Escape Expected"
Definition at line 1077 of file action_dialog.c.
Popup tech stealing dialog with list of possible techs for "Targeted Steal Tech"
Definition at line 1067 of file action_dialog.c.
Popup tech stealing dialog with list of possible techs
Definition at line 1031 of file action_dialog.c.
Callback from the extra target selection dialog.
Definition at line 1240 of file action_dialog.c.
Callback from the unit target selection dialog.
Definition at line 1169 of file action_dialog.c.
User selected "Upgrade Unit" from choice dialog.
Definition at line 510 of file action_dialog.c.
|
static |
Definition at line 66 of file action_dialog.c.
|
static |
Definition at line 95 of file action_dialog.c.
|
static |
Definition at line 67 of file action_dialog.c.
Definition at line 74 of file action_dialog.c.
|
static |
Definition at line 69 of file action_dialog.c.
|
static |
Definition at line 1393 of file action_dialog.c.
Definition at line 73 of file action_dialog.c.
Definition at line 72 of file action_dialog.c.
|
static |
Definition at line 78 of file action_dialog.c.
|
static |
Definition at line 76 of file action_dialog.c.
|
static |
Definition at line 71 of file action_dialog.c.
Definition at line 70 of file action_dialog.c.