#include "actions/context.h"
Include dependency graph for sg.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Definition in file sg.h.
| enum tuseractions |
| void changePassword | ( | ) |
| bool continueAndStartMultiplayerGame | ( | bool | mostRecent | ) |
Definition at line 608 of file sg.cpp.
References actmap, GameMap::actplayer, continueNetworkGame(), displaymap(), hookGuiToMap(), GameMap::player, and GameMap::sigPlayerUserInteractionBegins.
Referenced by executeUserAction().
Definition at line 40 of file contextutils.cpp.
References Context::actingPlayer, Context::actionContainer, GameMap::actions, GameMap::actplayer, Context::display, Context::gamemap, getDefaultMapDisplay(), GameMap::getPlayer(), GameMap::getPlayerView(), Context::parentAction, and Context::viewingPlayer.
Referenced by buildProductionLine(), cancelResearch(), cargoUnitMove(), constructBuilding(), constructUnit(), CargoGuiFunctions::UnitProduction::execute(), CargoGuiFunctions::UnitTraining::execute(), CargoGuiFunctions::RefuelUnitCommand::execute(), CargoGuiFunctions::RepairUnit::execute(), CargoGuiFunctions::MoveUnitUp::execute(), CargoGuiFunctions::TransferUnitControl::execute(), CargoGuiFunctions::MoveUnitIntoInnerContainer::execute(), CargoGuiFunctions::RecycleUnitCommandButton::execute(), ChangeDiplomaticStatus::execute(), GuiFunctions::AttackGui::execute(), GuiFunctions::MovementBase::execute(), GuiFunctions::PowerSwitch::execute(), GuiFunctions::DestructBuilding::execute(), GuiFunctions::EnableReactionfire::execute(), GuiFunctions::DisableReactionfire::execute(), GuiFunctions::JumpDriveIcon::execute(), GuiFunctions::RepairUnit::execute(), GuiFunctions::RefuelUnitCommand::execute(), GuiFunctions::PutMineStage2::execute(), GuiFunctions::RemoveMine::execute(), GuiFunctions::ObjectBuildingGui::execute(), GuiFunctions::BuildVehicleCommand::execute(), GuiFunctions::ConstructBuilding::execute(), GuiFunctions::SelfDestructIcon::execute(), executeUserAction(), ChooseTech::ok(), InternalAmmoTransferHandler::performTransfer(), putMineFunc(), recycleUnit(), redo(), removeMineFunc(), removeProductionLine(), VehicleProduction_SelectionWindow::removeProductionLine(), renameContainer(), BuildingControlWindow::repair(), repairBuilding(), repairUnit(), selfDestruct(), serviceCommand(), setDiplomacy(), setResearchGoal(), setResourceProcessingRate(), trainUnit(), transferControl(), undo(), unitAttack(), unitDestructBuilding(), unitJump(), unitMovement(), unitPowerGenerationEnable(), unitPutObject(), unitReactionFireEnable(), and AddProductionLine_SelectionItemFactory::vehicleTypeSelected().
| void executeUserAction | ( | tuseractions | action | ) |
Definition at line 755 of file sg.cpp.
References actionManager(), Research::activetechnology, actmap, GameMap::actplayer, Player::ai, SoundSystem::areEffectsMuted(), benchgame(), bi3preferences(), ASC_MainScreenWidget::ButtonPanel, ActionRegistry::CancelResearchCommand, ContainerBase::cargoWeight(), cgp_disableUnitTransfer, changePassword(), MapDisplayPG::changeZoom(), choice_dlg(), choiceDialog(), chooseTechnologyIfAvail(), IconRepository::clear(), computeview(), continueAndStartMultiplayerGame(), createContext(), createUnitCostList(), Research::developedTechnologies, Player::diplomacy, displayActionError(), displaymap(), displaymessage(), displaymessage2(), tdialogbox::done(), editAlliances(), editEmailOptions(), editGameOptions(), editjournal(), editPlayerData(), MessagingHubBase::Error, MessagingHubBase::FatalError, fieldVisibility(), fieldvisiblenow(), GameDialog::gameDialog(), GameMap::getCurrentPlayer(), GameMap::getCursor(), getDefaultMapDisplay(), GameMap::getField(), GameMap::getgameparameter(), SoundSystem::getInstance(), MainScreenWidget::getMapDisplay(), getnextfilenumname(), ContainerBase::getOwner(), getPGApplication(), Research::getResearchPerTurn(), getSelectedField(), DiplomaticStateVector::getState(), giveunitaway(), help(), helpAbout(), MessagingHubBase::InfoMessage, infoMessage(), tviewanytext::init(), CGameOptions::Instance(), Research::listTriggeredTechAdapter(), loadGame(), locateFile(), mainScreenWidget, maintainencecheck(), ASC_MainScreenWidget::MapControl, mouseparams, GameTime::move(), Technology::name, networksupervisor(), newmessage(), newreminder(), Player::oldmessage, ASC_MainScreenWidget::OverviewMap, SoundSystem::pauseMusic(), PEACE_SV, GameMap::player, Research::progress, ASC_PG_App::Quit(), redo(), releasetimeslice(), ASC_PG_App::reloadTheme(), repaintDisplay, repaintMap, Player::research, researchinfo(), Technology::researchpoints, resourceAnalysis(), SoundSystem::resumeMusic(), tviewanytext::run(), BaseAI::run(), GotoPosition::RunModal(), runOpenTasks(), saveGame(), savegame(), selectAndRunLuaScript(), selectgraphicset(), selectPlayList(), Player::sentmessage, CGameOptions::setChanged(), SoundSystem::setEffectsMute(), settributepayments(), showCargoSummary(), showGameParameters(), showMemoryFootprint(), ASC_MainScreenWidget::showMovementRange(), showPlayerTime(), showSDLInfo(), showSearchPath(), showUnitAiProperties(), showUnitEndurance(), showUnitSummary(), showUsedPackages(), ASC_MainScreenWidget::showWeaponRange(), soundSettings(), ASC_MainScreenWidget::spawnPanel(), startMultiplayerGame(), statisticDialog(), strrr(), ActionResult::successful(), taskManager(), tmousesettings::taste, technologyRepository, GameMap::time, MapDisplayPG::toggleMapLayer(), MainScreenWidget::toggleMapLayer(), ASCString::toString(), GameTime::turn(), Vehicle::typ, ua_actionManager, ua_aibench, ua_benchgamewov, ua_benchgamewv, ua_bi3preferences, ua_cancelResearch, ua_cargosummary, ua_changepassword, ua_changeresourceview, ua_chooseTechnology, ua_clearImageCache, ua_computerturn, ua_continuenetworkgame, ua_continuerecentnetworkgame, ua_createReminder, ua_createUnitCostList, ua_decrease_zoom, ua_editjournal, ua_editPlayerData, ua_emailOptions, ua_exitgame, ua_exportUnitToFile, ua_GameParameterInfo, ua_gamepreferences, ua_GameStatus, ua_getMemoryFootprint, ua_giveunitaway, ua_gotoPosition, ua_help, ua_howtocontinuepbem, ua_howtostartpbem, ua_increase_zoom, ua_loadgame, ua_loadrecentgame, ua_locatefile, ua_mainmenu, ua_networksupervisor, ua_newGame, ua_newmessage, ua_recompteview, ua_redo, ua_reloadDlgTheme, ua_repaint, ua_repainthard, ua_researchinfo, ua_resourceAnalysis, ua_runLuaCommands, ua_runOpenTasks, ua_savegame, ua_SDLinfo, ua_selectgraphicset, ua_selectPlayList, ua_settribute, ua_setupalliances, ua_setupnetwork, ua_showCargoLayer, ua_showMiningPower, ua_showPlayerSpeed, ua_showResearchStatus, ua_showsearchdirs, ua_showTechAdapter, ua_showUnitEndurance, ua_showUsedPackages, ua_soundDialog, ua_statisticdialog, ua_taskManager, ua_testMessages, ua_togglesound, ua_toggleunitshading, ua_undo, ua_unitAiOptions, ua_unitGuideDialog, ua_unitproductionanalysis, ua_UnitSetInfo, ua_unitsummary, ua_unitweightinfo, ua_vehicleinfo, ua_viewaboutmessage, ua_viewButtonPanel, ua_viewfont, ua_viewjournal, ua_viewlayerhelp, ua_viewMapControlPanel, ua_viewOverviewMapPanel, ua_viewPipeNet, ua_viewqueuedmessages, ua_viewReactionfireOverlay, ua_viewreceivedmessages, ua_viewsentmessages, ua_viewterraininfo, ua_viewUnitexperienceOverlay, ua_viewUnitinfoOverlay, ua_viewUnitInfoPanel, ua_viewunitmovementrange, ua_viewunitweaponrange, ua_viewWindPanel, ua_visibilityInfo, ua_weathercast, ua_writeLuaCommands, ua_writemaptopcx, ua_writescreentopcx, undo(), unitGuideWindow(), ASC_MainScreenWidget::UnitInfo, unitInfoDialog(), unitProductionAnalysis(), CGameOptions::units_gray_after_move, GameMap::unsentmessage, updateFieldInfo, MapField::vehicle, viewChanged, viewFont(), viewjournal(), viewmessages(), viewMiningPower(), viewterraininfo(), viewUnitSetinfo(), visible_all, MessagingHubBase::Warning, warningMessage(), weathercast(), Vehicle::weight(), VehicleType::weight, ASC_MainScreenWidget::WindInfo, writeLuaCommands(), writemaptopcx(), and writepcx().
| void hookGuiToMap | ( | GameMap * | map | ) |
Definition at line 285 of file sg.cpp.
References checkForNewResearch(), checkforreplay(), checkJournal(), checkUsedASCVersions(), GameMap::getGuiHooked(), GameMap::guiHooked(), positionCursor(), repaintMap, runPendingTasks(), GameMap::sigPlayerTurnHasEnded, GameMap::sigPlayerUserInteractionBegins, GameMap::sigPlayerUserInteractionEnds, updateFieldInfo, viewcomp(), viewOwnReplay(), and viewunreadmessages().
| bool loadGame | ( | bool | mostrecent | ) |
Definition at line 337 of file sg.cpp.
References actmap, tfindfile::FileInfo::date, displaymap(), MapDisplayInterface::displayPosition(), GameMap::getCurrentPlayer(), GameMap::getCursor(), getDefaultMapDisplay(), tfindfile::getnextname(), loadGameFromFile(), tfindfile::FileInfo::name, positionCursor(), s1, savegameextension, selectSavegame(), and updateFieldInfo.
Referenced by executeUserAction().
| bool loadGameFromFile | ( | const ASCString & | filename | ) |
Definition at line 307 of file sg.cpp.
References actmap, GameMap::actplayer, tnstream::appending, computeview(), displaymessage2(), hookGuiToMap(), GameMap::levelfinished, tsavegameloaders::loadGameFromFile(), mapLoadingExceptionChecker(), GameMap::replayinfo, and tnstream::writing.
| void saveGame | ( | bool | as | ) |
Definition at line 371 of file sg.cpp.
References actmap, GameMap::actplayer, GameMap::preferredFileNames, s1, savegame(), GameMap::PreferredFilenames::savegame, savegameextension, and selectSavegame().
Referenced by executeUserAction().
1.5.1