spfst.cpp File Reference

map accessing and usage routines used by ASC and the mapeditor More...

#include <stdio.h>
#include <cstring>
#include <utility>
#include <map>
#include "vehicletype.h"
#include "buildingtype.h"
#include "typen.h"
#include "spfst.h"
#include "attack.h"
#include "mapalgorithms.h"
#include "vehicle.h"
#include "buildings.h"
#include "mapfield.h"
#include "spfst-legacy.h"

Include dependency graph for spfst.cpp:

Go to the source code of this file.

Functions

void displaymap ()
int terrainaccessible (const MapField *field, const Vehicle *vehicle, int uheight)
 Checks if the unit can drive on the field.
int terrainaccessible2 (const MapField *field, const Vehicle *vehicle, int uheight)
 Checks if the unit can drive on the field.
int terrainaccessible2 (const MapField *field, const TerrainAccess &terrainAccess, int uheight)
 Checks if the field can be accessed.
int fieldAccessible (const MapField *field, const Vehicle *vehicle, int uheight, const bool *attacked, bool ignoreVisibility)
MapFieldgetfield (int x, int y)
 returns the field at the given coordinates
void putbuilding (GameMap *actmap, const MapCoordinate &entryPosition, int color, const BuildingType *buildingtyp, int completion, int ignoreunits)
 puts a building onto the map. To be used by the map editor! For ingame usage, see ConstructBuildingCommand or SpawnBuilding
void checkobjectsforremoval (GameMap *gamemap)
 removes all objects that cannot exist where they currently are (terrainaccess)
void checkunitsforremoval (GameMap *gamemap)
 removes all units that cannot exist any more, either due to invalid terrin (like tanks on melting ice) or too much wind (eg.
int getwindheightforunit (const Vehicle *eht, int uheight)
 Wind may be different at different heights.
int getmaxwindspeedforunit (const Vehicle *eht)
 returns the maximum wind speed that the unit can endure
int getheightdelta (const ContainerBase *c1, const ContainerBase *c2)
 calculate the height difference between two levels of height.
bool fieldvisiblenow (const MapField *pe, Vehicle *veh, int player)
 {@
VisibilityStates fieldVisibility (const MapField *pe)
 {@
VisibilityStates fieldVisibility (const MapField *pe, int player)
void calculateobject (const MapCoordinate &pos, bool mof, const ObjectType *obj, GameMap *gamemap)
void calculateobject (int x, int y, bool mof, const ObjectType *obj, GameMap *actmap)
 recalculates the connection (like road interconnections) of an object
void calculateallobjects (GameMap *actmap)
 recalculates the connection (like road interconnections) of all objects on the map

Variables

SigC::Signal0< void > repaintMap
 }@
SigC::Signal0< void > repaintDisplay
SigC::Signal0< void > updateFieldInfo
SigC::Signal0< void > cursorMoved
SigC::Signal1< void, ContainerBase * > showContainerInfo
SigC::Signal1< void, VehicleType * > showVehicleTypeInfo
SigC::Signal0< void > viewChanged
 the view of the player onto the map changed, for example because he scrolled the map
SigC::Signal1< void, GameMap * > mapChanged
SigC::Signal0< bool > idleEvent
SigC::Signal1< void, const
Context & > 
fieldCrossed
GameMapactmap = NULL
Schriften schriften


Detailed Description

map accessing and usage routines used by ASC and the mapeditor

Definition in file spfst.cpp.


Function Documentation

void calculateallobjects ( GameMap actmap  ) 

recalculates the connection (like road interconnections) of all objects on the map

Definition at line 565 of file spfst.cpp.

References actmap, ForestCalculation::calculateforest(), calculateobject(), GameMap::getField(), GameMap::xsize, and GameMap::ysize.

Referenced by GameMap::calculateAllObjects(), execaction(), tloadBImap::LoadFromFile(), tsavegameloaders::loadgame(), tnetworkloaders::loadnwgame(), GameMap::resize(), and transformMap().

void calculateobject ( int  x,
int  y,
bool  mof,
const ObjectType obj,
GameMap gamemap 
)

recalculates the connection (like road interconnections) of an object

Parameters:
x The x coordinate of the field
y The y coordinate of the field
mof Should the neighbouring fields be modified if necessary
obj The objecttype that is to be aligned on this field
gamemap the map that the object is on

Definition at line 472 of file spfst.cpp.

void calculateobject ( const MapCoordinate pos,
bool  mof,
const ObjectType obj,
GameMap gamemap 
)

Definition at line 463 of file spfst.cpp.

Referenced by MapField::addobject(), calculateallobjects(), calculateobject(), TerrainItem::place(), placeTerrain(), and MapField::removeObject().

void checkobjectsforremoval ( GameMap gamemap  ) 

removes all objects that cannot exist where they currently are (terrainaccess)

Definition at line 247 of file spfst.cpp.

References getfield(), MapField::removeObject(), GameMap::xsize, and GameMap::ysize.

Referenced by MapChangeCompleted::execute().

void checkunitsforremoval ( GameMap gamemap  ) 

removes all units that cannot exist any more, either due to invalid terrin (like tanks on melting ice) or too much wind (eg.

hoovercrafts in a storm)

Definition at line 261 of file spfst.cpp.

References MapField::bdt, chfahrend, getBuildingReference(), GameMap::getField(), getmaxwindspeedforunit(), getUnitReference(), maxwindspeed, GameMap::player, playerNum, MapField::vehicle, Player::vehicleList, GameMap::weather, GameMap::Weather::windSpeed, GameMap::xsize, and GameMap::ysize.

Referenced by GameMap::endTurn(), and MapChangeCompleted::execute().

void displaymap (  ) 

Definition at line 58 of file spfst.cpp.

References repaintMap.

Referenced by changebuildingvalues(), choosezoomlevel(), continueAndStartMultiplayerGame(), editAlliances(), execaction(), execaction_pg(), trunreplay::execnextreplaymove(), GuiFunctions::InternalAmmoTransferDialog::execute(), GuiFunctions::RefuelUnitDialogCommand::execute(), GuiFunctions::RefuelUnitCommand::execute(), GuiFunctions::Attack::execute(), GuiFunctions::EndTurn::execute(), GuiFunctions::MovementBase::execute(), GuiFunctions::Cancel::execute(), executeUserAction(), k_loadmap(), k_savemap(), loadGame(), mirrorMap(), movebuilding(), pasteArea(), redo(), resizemap(), trunreplay::run(), MapNetwork::searchfield(), selectgraphicset(), StartMultiplayerGame::start(), MapSwitcher::toggle(), transformMap(), and undo().

int fieldAccessible ( const MapField field,
const Vehicle vehicle,
int  uheight = -2,
const bool *  attacked = NULL,
bool  ignoreVisibility = false 
)

tests if the vehicle can move onto the field

Parameters:
uheight the level of height for which the check should be done. Use -2 to use the current height of the unit
Return values:
0 unit cannot move there
1 unit can pass over the field
2 unit can stop its movement there

Definition at line 124 of file spfst.cpp.

References attackpossible28(), MapField::bdt, MapField::building, cbbuildingentry, chgetaucht, chschwimmend, chtieffliegend, Player::diplomacy, fieldVisibility(), getFirstBit(), getheightdelta(), ContainerBase::getMap(), ContainerBase::getOwner(), GameMap::getPlayer(), getTerrainBitType(), Vehicle::height, ContainerBaseType::height, DiplomaticStateVector::isAllied(), PEACE, terrainaccessible(), Vehicle::typ, Building::typ, MapField::vehicle, ContainerBase::vehicleLoadable(), vehicleplattfahrbar(), and visible_not.

Referenced by SearchReconquerBuilding::canUnitCapture(), AStar3D::findPath(), AStar::findPath(), AStar3D::getMoveCost(), AStar::getMoveCost(), MoveUnitCommand::longDistAvailable(), ClipBoardBase::place(), and FindUnitPlacementPos::testfield().

VisibilityStates fieldVisibility ( const MapField pe,
int  player 
)

Definition at line 445 of file spfst.cpp.

References GameMap::getInitialMapVisibility(), MapField::getMap(), MapField::visible, visible_all, and visible_not.

VisibilityStates fieldVisibility ( const MapField pe  ) 

{@

evaluates the visibility of a field

Parameters:
pe the field to be evaluated
player the player who is 'looking'; without player the active player will be used

Definition at line 440 of file spfst.cpp.

Referenced by MapDisplayPG::displayMovementStep(), ReplayMapDisplay::displayMovingUnit(), PG_MapDisplay::displayMovingUnit(), executeUserAction(), fieldAccessible(), fieldVisibility(), getVisibilityStatistics(), VisibilityLayer::paintSingleField(), MapRenderer::paintTerrain(), testObjectRemoval(), testTransferControl(), testView3(), and OverviewMapHolder::updateField().

bool fieldvisiblenow ( const MapField pe,
Vehicle veh,
int  player 
)

{@

evaluates the visibility of a field

Parameters:
pe the field to be evaluated
player the player who is 'looking'

Definition at line 399 of file spfst.cpp.

Referenced by attackpossible(), GuiFunctions::SelfDestructIcon::available(), GuiFunctions::OpenContainer::available(), GuiFunctions::UnitInfo::available(), ReplayMapDisplay::displayActionCursor(), ReplayMapDisplay::displayMovingUnit(), ReplayMapDisplay::displayPosition(), DashboardPanel::eval(), trunreplay::execnextreplaymove(), executeUserAction(), JumpDriveCommand::fieldReachable(), fieldvisiblenow(), tsearchreactionfireingunits::finalCheck(), PutMineCommand::go(), NewGuiHost::mapIconProcessing(), DashboardPanel::painter(), ReplayMapDisplay::playPositionalSound(), WholeMapRenderer::renderVisibility(), WeaponRange::run(), VehicleAttackAction::runAction(), MoveUnit::runAction(), AttackCommand::searchTargets(), AI::showFieldInformation(), showUnitAiProperties(), DashboardPanel::showUnitData(), testAttack2(), testAttack3(), testDiplomacy1(), testTransferControl(), testView1(), testView2(), OverviewMapHolder::updateField(), viewUnitSetinfo(), and trunreplay::wait().

MapField* getfield ( int  x,
int  y 
)

returns the field at the given coordinates

Definition at line 199 of file spfst.cpp.

References actmap, GameMap::field, GameMap::xsize, and GameMap::ysize.

Referenced by tmapgenerator::addcoast(), tmapgenerator::checkland(), checkobjectsforremoval(), ReplayMapDisplay::displayActionCursor(), ReplayMapDisplay::displayMovingUnit(), ReplayMapDisplay::displayPosition(), trunreplay::execnextreplaymove(), tloadBImap::getfield(), InsertBiMap::getfield(), UnitPropertyEditor::init(), movebuilding(), UnitTypeTransformation::run(), WeaponRange::run(), ShowPolygonUsingTemps::setpointabs(), and stu_height().

int getheightdelta ( const ContainerBase c1,
const ContainerBase c2 
)

calculate the height difference between two levels of height.

Since floating and ground based are assumed to be the same effective height, a simple subtraction isn't sufficient. Height is a numeric (and not bitmapped) value

Definition at line 393 of file spfst.cpp.

Referenced by attackpossible(), attackpossible28(), attackpossible2n(), attackpossible2u(), ConstructBuildingCommand::buildingProductionPrerequisites(), fieldAccessible(), DestructBuildingCommand::getFields(), getheightdelta(), WeapDist::getWeaponStrength(), WeaponInfoPanel::showWeapon(), ContainerBase::vehicleLoadable(), and ContainerBaseType::vehicleUnloadable().

int getmaxwindspeedforunit ( const Vehicle eht  ) 

returns the maximum wind speed that the unit can endure

Definition at line 332 of file spfst.cpp.

References MapField::bdt, cbfestland, cbharbour, cbwater0, chfahrend, chhochfliegend, chschwimmend, chtieffliegend, GameMap::getField(), getFirstBit(), ContainerBase::getMap(), getTerrainBitType(), Vehicle::height, maxint, maxwindspeed, VehicleType::maxwindspeedonwater, VehicleType::movement, Vehicle::typ, MapField::vehicle, Vehicle::xpos, and Vehicle::ypos.

Referenced by checkunitsforremoval(), GameMap::endTurn(), and DashboardPanel::eval().

int getwindheightforunit ( const Vehicle eht,
int  uheight = -1 
)

Wind may be different at different heights.

This function returns the index for the wind array. If uheight != -1 it is assumed the unit was uheight instead the actual level of height

Definition at line 318 of file spfst.cpp.

References chfliegend, chhochfliegend, and Vehicle::height.

void putbuilding ( GameMap actmap,
const MapCoordinate entryPosition,
int  color,
const BuildingType buildingtyp,
int  completion,
int  ignoreunits 
)

puts a building onto the map. To be used by the map editor! For ingame usage, see ConstructBuildingCommand or SpawnBuilding

Definition at line 210 of file spfst.cpp.

References actmap, BuildingType::construction_steps, fatalError(), BuildingType::fieldExists(), GameMap::getField(), BuildingType::getFieldCoordinate(), and Building::setCompletion().

Referenced by BuildingItem::place(), and placeBuilding().

int terrainaccessible ( const MapField field,
const Vehicle vehicle,
int  uheight = -1 
)

Checks if the unit can drive on the field.

Parameters:
field the field that the unit is checked again
vehicle the unit who accessabilit to field is tested
uheight if != -1, the unit is assumed to be on this height instead of the actual one.
Returns:
0=unit cannot access this field; 1=unit can move across this field but cannot keep standing there 2=unit can move and stand there

Definition at line 70 of file spfst.cpp.

References terrainaccessible2().

Referenced by Vehicle::canMove(), fieldAccessible(), UnitPropertyEditor::init(), movebuilding(), VehicleItem::place(), and tmapgenerator::setmap().

int terrainaccessible2 ( const MapField field,
const TerrainAccess terrainAccess,
int  uheight 
)

Checks if the field can be accessed.

Returns:
0=unit cannot access this field; 1=unit can move across this field but cannot keep standing there; 2=unit can move and stand there; < 0 unit cannot access this field, because of: -1 very deep water required to submerge deep -2 deep water required to submerge -3 unit cannot drive onto terrain

Definition at line 91 of file spfst.cpp.

References TerrainAccess::accessible(), MapField::bdt, cbwater, cbwater2, cbwater3, chgetaucht, chschwimmend, chtieffliegend, chtiefgetaucht, and getTerrainBitType().

int terrainaccessible2 ( const MapField field,
const Vehicle vehicle,
int  uheight = -1 
)

Checks if the unit can drive on the field.

Parameters:
field the field that the unit is checked again
vehicle the unit who accessabilit to field is tested
uheight if != -1, the unit is assumed to be on this height instead of the actual one.
Returns:
0=unit cannot access this field; 1=unit can move across this field but cannot keep standing there; 2=unit can move and stand there; < 0 unit cannot access this field, because of: -1 very deep water required to submerge deep -2 deep water required to submerge -3 unit cannot drive onto terrain

Definition at line 79 of file spfst.cpp.

Referenced by terrainaccessible(), terrainaccessible2(), and Vehicle::vehicleconstructable().


Variable Documentation

GameMap* actmap = NULL

Definition at line 64 of file spfst.cpp.

Referenced by tmapgenerator::addcoast(), EventAreasDialog::addNewWeatherAreaInformation(), EventWindChangesDialog::addNewWindInformation(), adminGame(), AdminGameWindow::AdminGameWindow(), AllianceSetupWindow::AllianceSetupWindow(), tplayerchange::anzeige(), AStar::AStar(), NextTurnStrategy_OnlyCampaign::authenticate(), NextTurnStrategy_AskUser::authenticate(), authenticateUser(), GuiFunctions::MovementBase::available(), GuiFunctions::Ascend::available(), GuiFunctions::Descend::available(), GuiFunctions::EndTurn::available(), GuiFunctions::Attack::available(), GuiFunctions::PowerSwitch::available(), GuiFunctions::UnitInfo::available(), GuiFunctions::DestructBuilding::available(), GuiFunctions::OpenContainer::available(), GuiFunctions::EnableReactionfire::available(), GuiFunctions::DisableReactionfire::available(), GuiFunctions::JumpDriveIcon::available(), GuiFunctions::RepairUnit::available(), GuiFunctions::RefuelUnitCommand::available(), GuiFunctions::RefuelUnitDialogCommand::available(), GuiFunctions::PutMine::available(), GuiFunctions::BuildObject::available(), GuiFunctions::BuildVehicleCommand::available(), GuiFunctions::ConstructBuilding::available(), GuiFunctions::SelfDestructIcon::available(), ContextMenu::ContainerProperties::available(), ContextMenu::ContainerCargo::available(), ContextMenu::DeleteVehicle::available(), ContextMenu::DeleteBuilding::available(), ContextMenu::ContainerProduction::available(), ContextMenu::DeleteMine::available(), ContextMenu::ChangeMineStrength::available(), ContextMenu::DeleteTopObject::available(), ContextMenu::DeleteAllObjects::available(), benchgame(), buildemptymap(), buildProductionLine(), ResourcePlacementDialog::buttonEvent(), tplayerchange::buttonpressed(), calculateallobjects(), ForestCalculation::calculateforest(), calculateobject(), cancelResearch(), cargoUnitMove(), MapDisplayPG::centerOnField(), tspfldloaders::chainitems(), GuiIconHandler::checkForKey(), checkforreplay(), checkJournal(), ResizeMap::checkvalue(), MapDisplayPG::checkViewPosition(), OverviewMapHolder::clearmap(), constructBuilding(), FileTransfer::constructFileName(), constructUnit(), continueAndStartMultiplayerGame(), trunreplay::createReplayContext(), MapSwitcher::deleteMaps(), VehicleItem::display(), BuildingItem::display(), ReplayMapDisplay::displayActionCursor(), PG_MapDisplay::displayMovingUnit(), ReplayMapDisplay::displayMovingUnit(), ReplayMapDisplay::displayPosition(), MapDisplayPG::displayUnitMovement(), displaywindspeed(), doresearch(), editAlliances(), editArchivalInformation(), editjournal(), EditMapParameters::EditMapParameters(), editpolygon(), editResearch(), editResearchPoints(), editTechAdapter(), endTurn(), DashboardPanel::eval(), NewGuiHost::evalCursor(), EventAreasDialog::EventAreasDialog(), ASC_MainScreenWidget::eventKeyDown(), Maped_MainScreenWidget::eventKeyDown(), MapDisplayPG::eventMouseButtonDown(), TargetCoordinateLocator::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), EventWindChangesDialog::EventWindChangesDialog(), execaction(), execaction_pg(), trunreplay::execnextreplaymove(), GuiFunctions::AttackGui::execute(), GuiFunctions::Cancel::execute(), GuiFunctions::MovementBase::execute(), GuiFunctions::EndTurn::execute(), GuiFunctions::Attack::execute(), GuiFunctions::PowerSwitch::execute(), GuiFunctions::DestructBuilding::execute(), GuiFunctions::OpenContainer::execute(), GuiFunctions::EnableReactionfire::execute(), GuiFunctions::DisableReactionfire::execute(), GuiFunctions::JumpDriveIcon::execute(), GuiFunctions::RepairUnit::execute(), GuiFunctions::RefuelUnitCommand::execute(), GuiFunctions::RefuelUnitDialogCommand::execute(), GuiFunctions::PutMine::execute(), GuiFunctions::PutMineStage2::execute(), GuiFunctions::RemoveMine::execute(), GuiFunctions::ObjectBuildingGui::execute(), GuiFunctions::BuildObject::execute(), GuiFunctions::BuildVehicleCommand::execute(), GuiFunctions::ConstructBuilding::execute(), GuiFunctions::SelfDestructIcon::execute(), executeUserAction(), CopyMap::fieldOperator(), MapDisplayPG::fillSurface(), findNextPlayer(), findPath(), gamethread(), generatemap(), getactfield(), getActiveMap(), getfield(), MapSwitcher::getName(), GuiFunctions::AttackGui::getName(), GuiFunctions::RepairUnit::getName(), getplayercolor(), getSelectedField(), ContextMenu::ContainerProperties::getText(), ContextMenu::ContainerCargo::getText(), getVisibilityStatistics(), getxy_building(), IngameMessageViewer::IngameMessageViewer(), tchoice_dlg::init(), ResizeMap::init(), tdialogbox::init(), tmapgenerator::init(), ttributepayments::init(), tresearchinfo::init(), CargoItemFactory::isFiltered(), CargoItemFactory::itemSelected(), iterateToNextPlayer(), k_loadmap(), k_savemap(), MapDisplayPG::keyboardHandler(), loadGame(), loadGameFromFile(), loadGameLua(), loadmap(), loadStartupMap(), mainloopidle(), maintainencecheck(), mapeditorMainThread(), NewGuiHost::mapIconProcessing(), MessageSelectionWindow::messageSelected(), mirrorMap(), MirrorMap::mirrorX(), MirrorMap::mirrorY(), OverviewMapPanel::mouseClick(), Weathercast::mouseClick(), newmap(), newmessage(), newreminder(), UnitInfoPanel::onClick(), UnitMovementRangeLayer::operateField(), UnitWeaponRangeLayer::operateField(), DashboardPanel::painter(), OverviewMapPanel::painter(), Weathercast::painter(), ShowPolygonUsingTemps::paintPolygon(), MapRenderer::paintTerrain(), CopyMap::paste(), pasteArea(), ClipBoardBase::pasteUnit(), ClipBoardBase::place(), VehicleItem::place(), BuildingItem::place(), ObjectItem::place(), TerrainItem::place(), MineItem::place(), placeCurrentItem(), playerchange(), PlayerColorPanel::PlayerColorPanel(), PlayerSetupWindow::PlayerSetupWindow(), ReplayMapDisplay::playPositionalSound(), MapDisplayPG::Cursor::pos(), ImportBiMap::preparemap(), InsertBiMap::preparemap(), process_ASC_map(), process_BI_map(), putbuilding(), putMineFunc(), readtextmessage(), recycleUnit(), redo(), tdialogbox::redraw(), ObjectItem::remove(), removeCurrentItem(), removeMineFunc(), removeProductionLine(), renameContainer(), repairBuilding(), repairUnit(), researchinfo(), resetActmap(), resourceAnalysis(), resourceComparison(), ResizeMap::run(), tputresourcesdlg::run(), UnitTypeTransformation::run(), ttributepayments::run(), tchoosetechlevel::run(), trunreplay::run(), runai(), runOpenTasks(), runSpecificReplay(), saveGame(), MapDisplayPG::scrollMap(), selectFields(), selectgraphicset(), selectPosition(), selectunit(), selfDestruct(), sendGameParameterAsMail(), serviceCommand(), setDiplomacy(), seteventtriggers(), tmapgenerator::setmap(), IngameMessageViewer::SetMessage(), setResearchGoal(), setResourceProcessingRate(), tmessagedlg::setup(), setupalliances(), setupPlayers(), setweatherall(), showAttackAnimation(), PG_MapDisplay::showBattle(), showbdtbits(), showCargoSummary(), showGameParameters(), showMemoryFootprint(), showPlayerTime(), showUnitSummary(), showUsedPackages(), AvailableProductionItemFactory::spawnNextItem(), UnitListFactory::spawnNextItem(), ASC_MainScreenWidget::spawnPanel(), StartMultiplayerGame::start(), startnextcampaignmap(), testDebugFunction(), testMaps(), MapSwitcher::toggle(), trainUnit(), transfer_all_outstanding_tribute(), transferControl(), transformMap(), tshowhistoryinit(), undo(), unitAttack(), unitDestructBuilding(), unitInfoDialog(), unitJump(), unitMovement(), unitPowerGenerationEnable(), unitPutObject(), unitReactionFireEnable(), unitRemoveObject(), MapDisplayPG::updateMap(), Maped_MainScreenWidget::updateStatusBar(), VehicleCounterFactory::VehicleCounterFactory(), viewjournal(), viewmessages(), viewMiningPower(), viewUnitSetinfo(), trunreplay::wait(), Weathercast::Weathercast(), weathercast(), WeatherDialog::WeatherDialog(), WeatherPanel::WeatherPanel(), WholeMapRenderer::WholeMapRenderer(), writeGameParametersToString(), and writeLuaCommands().

SigC::Signal0<void> cursorMoved

Definition at line 48 of file spfst.cpp.

Referenced by TargetCoordinateLocator::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), ExchangeGraphics::ExchangeGraphics(), SelectFromMap::listItemClicked(), main(), NewGuiHost::NewGuiHost(), SelectFromMap::SelectFromMap(), Maped_MainScreenWidget::setupStatusBar(), and UnitMovementRangeLayer::UnitMovementRangeLayer().

SigC::Signal1<void, const Context&> fieldCrossed

Definition at line 54 of file spfst.cpp.

Referenced by AnyUnitEntersPolygon::arm(), SpecificUnitEntersPolygon::arm(), and MoveUnit::runAction().

SigC::Signal0<bool> idleEvent

Definition at line 53 of file spfst.cpp.

Referenced by ASC_PG_App::ASC_PG_App(), and OverviewMapHolder::connect().

SigC::Signal1<void,GameMap*> mapChanged

Definition at line 52 of file spfst.cpp.

Referenced by execaction(), GuiFunctions::JumpDriveIcon::execute(), Reinforcements::execute(), ChangeBuildingOwner::execute(), ChangeBuildingDamage::execute(), MapChangeCompleted::execute(), DiplomacyCommand::go(), main(), mirrorMap(), newmap(), pasteArea(), placeCurrentItem(), playerchange(), redo(), MainScreenWidget::setup(), and undo().

SigC::Signal0<void> repaintDisplay

Definition at line 46 of file spfst.cpp.

Referenced by tdialogbox::done(), executeUserAction(), gamethread(), tdialogbox::redrawall(), tdialogbox::redrawall2(), tdialogbox::run(), MainScreenWidget::setup(), and tdialogbox::~tdialogbox().

SigC::Signal0<void> repaintMap

}@

Definition at line 45 of file spfst.cpp.

Referenced by benchgame(), displaymap(), PG_MapDisplay::displayMap(), MapDisplayPG::eventMouseButtonDown(), execaction(), execaction_pg(), GuiFunctions::SelfDestructIcon::execute(), GuiFunctions::ConstructBuilding::execute(), GuiFunctions::BuildVehicleCommand::execute(), GuiFunctions::BuildObject::execute(), GuiFunctions::ObjectBuildingGui::execute(), GuiFunctions::PutMine::execute(), GuiFunctions::RepairUnit::execute(), GuiFunctions::JumpDriveIcon::execute(), GuiFunctions::DisableReactionfire::execute(), GuiFunctions::OpenContainer::execute(), GuiFunctions::DestructBuilding::execute(), GuiFunctions::AttackGui::execute(), CargoGuiFunctions::Movement::execute(), executeUserAction(), gamethread(), DiplomacyCommand::go(), hookGuiToMap(), loadGameLua(), main(), MapDisplayPG::MapDisplayPG(), UnitWeaponRangeLayer::operateField(), UnitMovementRangeLayer::operateField(), resetActiveGuiAction(), AI::run(), SelectFromMap::Show(), AI::showFieldInformation(), SelectFromMap::showFieldMarking(), PolygonEditor::showFieldMarking(), startnextcampaignmap(), testDebugFunction(), and SelectFromMap::~SelectFromMap().

Schriften schriften

Definition at line 66 of file spfst.cpp.

Referenced by tplayerchange::anzeige(), thelpsystem::buildgraphics(), tmapgenerator::buttonpressed(), tdialogbox::disablebutton(), tviewtext::displaytext(), tdialogbox::editfield(), tdialogbox::enablebutton(), tviewtext::evalcommand(), tdialogbox::execbutton(), infomessage(), tchoice_dlg::init(), tbi3preferences::init(), ResizeMap::init(), MultilineEdit::init(), tdisplaymessage::init(), tstringselect::init(), tmapgenerator::init(), BuildingValues::init(), MirrorMap::init(), ttributepayments::init(), tresearchinfo::init(), loadEditordata(), loadLegacyFonts(), main(), mapeditorMainThread(), tdialogbox::rahmen3(), tviewanytext::redraw(), tdialogbox::redraw(), setstartvariables(), and tdialogbox::tdialogbox().

SigC::Signal1<void,ContainerBase*> showContainerInfo

Definition at line 49 of file spfst.cpp.

SigC::Signal1<void,VehicleType*> showVehicleTypeInfo

Definition at line 50 of file spfst.cpp.

SigC::Signal0<void> updateFieldInfo

Definition at line 47 of file spfst.cpp.

Referenced by tsearchreactionfireingunits::attack(), DashboardPanel::DashboardPanel(), MapDisplayPG::eventMouseButtonDown(), ExchangeGraphics::ExchangeGraphics(), execaction(), trunreplay::execnextreplaymove(), ReplayGuiFunctions::ReplayRecordExit::execute(), ReplayGuiFunctions::ReplayRecord::execute(), ReplayGuiFunctions::ReplayExit::execute(), ReplayGuiFunctions::ReplayRewind::execute(), ReplayGuiFunctions::ReplaySlower::execute(), ReplayGuiFunctions::ReplayFaster::execute(), ReplayGuiFunctions::ReplayPause::execute(), ReplayGuiFunctions::ReplayPlay::execute(), GuiFunctions::SelfDestructIcon::execute(), GuiFunctions::InternalAmmoTransferDialog::execute(), GuiFunctions::ConstructBuilding::execute(), GuiFunctions::BuildVehicleCommand::execute(), GuiFunctions::BuildObject::execute(), GuiFunctions::ObjectBuildingGui::execute(), GuiFunctions::RemoveMine::execute(), GuiFunctions::PutMineStage2::execute(), GuiFunctions::PutMine::execute(), GuiFunctions::RefuelUnitDialogCommand::execute(), GuiFunctions::RefuelUnitCommand::execute(), GuiFunctions::RepairUnit::execute(), GuiFunctions::JumpDriveIcon::execute(), GuiFunctions::DisableReactionfire::execute(), GuiFunctions::EnableReactionfire::execute(), GuiFunctions::OpenContainer::execute(), GuiFunctions::DestructBuilding::execute(), GuiFunctions::PowerSwitch::execute(), GuiFunctions::MovementBase::execute(), GuiFunctions::Cancel::execute(), GuiFunctions::AttackGui::execute(), executeUserAction(), gamethread(), hookGuiToMap(), loadGame(), main(), NewGuiHost::NewGuiHost(), LuaBrush::place(), NewGuiHost::popIconHandler(), NewGuiHost::pushIconHandler(), redo(), trunreplay::run(), MoveUnit::runAction(), runai(), selectAndRunLuaScript(), Maped_MainScreenWidget::setupStatusBar(), StartMultiplayerGame::start(), undo(), and PG_MapDisplay::updateDashboard().

SigC::Signal0<void> viewChanged

the view of the player onto the map changed, for example because he scrolled the map

Definition at line 51 of file spfst.cpp.

Referenced by MapDisplayPG::centerOnField(), MapDisplayPG::eventMouseButtonDown(), execaction_pg(), executeUserAction(), OverviewMapPanel::OverviewMapPanel(), MapDisplayPG::scrollMap(), MapSwitcher::toggle(), and Weathercast::Weathercast().


Generated on Mon Feb 6 01:43:24 2012 for Advanced Strategic Command by  doxygen 1.5.1