Package net.sf.freecol.client.gui.action
Contains the Action
s used by the GUI in menus and other places.
The actions are stored by the ActionManager
and
are all subclasses of FreeColAction
.
If you implement a new action, you must also add a corresponding
line to the ActionManager
method. Each action is identified by a short ID, such as
"quitAction". In order to provide localization, you must also add a
line to the localization file
"data/strings/FreeColMessages.properties" using the ID of the action
plus ".name" as key.
You can also add a line with the ID of the action plus ".accelerator" in order to define a key binding. The value of the accelerator must be unique and must be valid Java KeyStroke Strings, as described here.
- Since:
- 0.4.0
-
Class Summary Class Description AboutAction An action for displaying an about box with version numbers.ActionManager Stores allFreeColActions
and retrieves them by identifier.AssignTradeRouteAction An action for assigning a trade route to the currently selected unit.BuildColonyAction An action for using the active unit to build a colony.CenterAction An action for centering the view on the active unit.ChangeAction An action for changing the view.ChangeWindowedModeAction An action for toggling between full-screen and windowed mode.ChatAction An action for initiating chatting.ClearOrdersAction An action for clearing the active unit's orders.ColopediaAction Displays a section of the Colopedia.ContinueAction Action to load and start the most recent save game of the client.DebugAction Switch debug mode on.DeclareIndependenceAction An action for declaring independence.DetermineHighSeasAction An action for determining the high seas tiles.DisbandUnitAction An action for disbanding the active unit.DisplayBordersAction An action to toggle the display of national borders.DisplayFogOfWarAction An action to toggle the display of national borders.DisplayGridAction An action to toggle the display of the map grid.DisplayTileTextAction Display text over tiles.EndTurnAction An action for ending the turn.EuropeAction An action for displaying theEuropePanel
.ExecuteGotoOrdersAction An action for executing goto orders immediately.FindSettlementAction An action for finding a settlement on the map.FortifyAction An action for fortifying the active unit.FreeColAction The super class of all actions in FreeCol.GotoAction An action for making a unit move to a specific location.GotoTileAction An action to make a unit go to a specific tile.ImprovementAction An action for using the active unit to add a tile improvement to the unit's tile, possibly changing the tile type in the process.LoadAction An action for filling the holds of the currently selected unit.MapboardAction Super class for all actions that should be disabled when the mapboard is not selected.MapControlsAction An action for displaying the map controls.MapEditorAction An action for starting the Map Editor.MiniMapToggleFogOfWarAction An action for enable/disable fog of war in on the minimap.MiniMapToggleViewAction Change view in on the minimap.MiniMapZoomInAction An action for zooming in on the minimap.MiniMapZoomOutAction An action for zooming out on the minimap.MoveAction An action for chosing the next unit as the active unit.NewAction An action for starting a new game.NewEmptyMapAction Creates a new empty map.OpenAction An action for loading a game or map.PreferencesAction An action for editing user preferences.QuitAction An action for quitting the game.ReconnectAction An action for reconnecting to the server.RenameAction An action for renaming the active unit.ReportCargoAction An action for displaying a Cargo Report.ReportColonyAction An action for displaying a Colony Report.ReportContinentalCongressAction An action for display a Congress Report.ReportEducationAction An action for displaying the Education Report.ReportExplorationAction An action for displaying an Exploration Report.ReportForeignAction An action to show the Foreign Affairs report.ReportHighScoresAction An action for displaying a High Score Report.ReportHistoryAction Show history messages in report panel.ReportIndianAction An action for displaying an Indian Relations Report.ReportLabourAction An action for displaying a Labour Report.ReportMilitaryAction An action for displaying a Military Report.ReportNavalAction An action for displaying a Naval Report.ReportProductionAction An action for displaying a Production Report.ReportReligionAction An action for displaying the Religion Report.ReportRequirementsAction An action for displaying a Requirements Report.ReportTradeAction An action for displaying a Trade Report.ReportTurnAction Show turn messages in report panel.RetireAction An action for retiring from the game.SaveAction An action for saving the game.SaveAndQuitAction An action for prompting the user to save before quitting the game.ScaleMapAction An action for scaling a map.SelectableAction An action for selecting one of several options.SentryAction An action to set sentry state to the active unit.ShowDifficultyAction An action for displaying the current difficulty level.ShowGameOptionsAction An action for displaying the Game Options.ShowMainAction Returns to theMainPanel
.ShowMapGeneratorOptionsAction An action for displaying the Map Generator Options.SkipUnitAction An action for skipping the active unit.StartMapAction An action for starting a new game from the current map editor map.TilePopupAction An action for displaying a tile popup.ToggleViewModeAction An action for changing view mode between move units mode and view terrain mode.TradeRouteAction An action for editing trade routes.UnitAction Super class for all actions that should be disabled when no unit is selected.UnloadAction An action for unloading a unit.WaitAction An action for ordering the active unit to wait for further orders.ZoomInAction An action for zooming in on the main map.ZoomOutAction An action for zooming out on the main map. -
Enum Summary Enum Description ColopediaAction.PanelType DisplayTileTextAction.DisplayText