Advanced Strategic Command
Functions
contextutils.cpp File Reference
#include "contextutils.h"
#include "gamemap.h"
Include dependency graph for contextutils.cpp:

Go to the source code of this file.

Functions

Context createContext (GameMap *gamemap)
 

Function Documentation

Context createContext ( GameMap gamemap)

Definition at line 25 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(), GuiFunctions::MovementBase::execute(), GuiFunctions::AttackGui::execute(), CargoGuiFunctions::UnitProduction::execute(), CargoGuiFunctions::UnitTraining::execute(), CargoGuiFunctions::RefuelUnitCommand::execute(), CargoGuiFunctions::RepairUnit::execute(), CargoGuiFunctions::MoveUnitUp::execute(), CargoGuiFunctions::MoveUnitIntoInnerContainer::execute(), CargoGuiFunctions::RecycleUnitCommandButton::execute(), CargoGuiFunctions::TransferUnitControl::execute(), GuiFunctions::PowerSwitch::execute(), ChangeDiplomaticStatus::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().