Home › Native functions › Map

Engine internals. No scripting access today. Listed for contributors and for understanding the game; using it needs a change to the game library.

Map

Function Signature (Linux) Symbol Current From Lua Notes
CityPlots::SetPurchasedByCity void Map::CityPlots::SetPurchasedByCity(Map::CityPlots* this, PlotCoord kLocation, PlayerTypes ePlayer, int idCity) (+1 overload) 0x4b620 0x4c5f0 no writes
CityPlots::SetValidDomains void Map::CityPlots::SetValidDomains(Map::CityPlots* this, Map::Plot::Instance* pkPlot) 0x4b880 0x4c850 no writes
CityPlots::SetWorkingCity void Map::CityPlots::SetWorkingCity(Map::CityPlots* this, PlotCoord kLocation, PlayerTypes ePlayer, int idCity) (+1 overload) 0x4b930 0x4c900 no writes
Feature::Manager::AddNaturalWonderVolcano void Map::Feature::Manager::AddNaturalWonderVolcano(Map::Feature::Manager* this, const PlotIndexVector& aPlotIndices, FeatureTypes eFeature) 0x7205e0 0x720ca0 no edit_call, writes
Feature::Manager::AddPlotYield void Map::Feature::Manager::AddPlotYield(Map::Feature::Manager* this, int iPlotIndex, YieldTypes eYield, int iAmount) 0x720820 0x720ee0 Dev CE (experimental): Map.AddPlotYield edit_call, event, writes
Feature::Manager::SetVolcanoActive ★ void Map::Feature::Manager::SetVolcanoActive(Map::Feature::Manager* this, bool bMustBeNamed) 0x726950 0x7271e0 Dev CE (experimental): Map.SetVolcanoActive analysed, edit_call, event, notification, writes; called by EFFECT_ACTIVATE_VOLCANOES
Feature::Manager::SetVolcanoInactive ★ void Map::Feature::Manager::SetVolcanoInactive(Map::Feature::Manager* this, bool bMustBeNamed) 0x726cb0 0x727540 Dev CE (experimental): Map.SetVolcanoInactive analysed, edit_call, event, notification, writes; called by EFFECT_ACTIVATE_VOLCANOES
Improvement::Builder::SetDistrictType bool Map::Improvement::Builder::SetDistrictType(Map::Improvement::Builder* this, int iX, int iY, DistrictTypes eNewValue, PlayerTypes eBuilder) (+1 overload) 0x25dbf0 0x25cdd0 no edit_call, writes
Instance::ChangeNaturalWonderCount void Map::Instance::ChangeNaturalWonderCount(Map::Instance* this, int iChange) 0x513f0 0x52000 Dev CE (experimental): Map.ChangeNaturalWonderCount writes
Landmass::Instance::ChangeCentroid void Map::Landmass::Instance::ChangeCentroid(Map::Landmass::Instance* this, const PlotCoord& kDelta) 0x2a850 0x2ae90 no writes
Landmass::Instance::ChangePlotCount void Map::Landmass::Instance::ChangePlotCount(Map::Landmass::Instance* this, int iChange) 0x2a880 0x2aec0 no writes
MapAnalysis::RemoveGraphCell void Map::MapAnalysis::RemoveGraphCell(Map::MapAnalysis* this, int i) 0x5cb580 0x5cc210 no writes
Player::Visibility::Builder::SetRevealed void Map::Player::Visibility::Builder::SetRevealed(PlayerTypes ePlayer, int iPlot, bool bRevealed) 0x2617b0 0x260990 no edit_call, writes
Player::Visibility::Manager::SetRevealedImprovementType bool Map::Player::Visibility::Manager::SetRevealedImprovementType(Map::Player::Visibility::Manager* this, PlayerTypes ePlayer, int iPlotIndex, ImprovementTypes eNewValue) 0x35ba50 0x35de10 Dev CE (experimental): Map.SetRevealedImprovementType edit_call, writes
Player::Visibility::Manager::SetRevealedResourceType bool Map::Player::Visibility::Manager::SetRevealedResourceType(Map::Player::Visibility::Manager* this, PlayerTypes ePlayer, int iPlotIndex, ResourceTypes eNewValue) 0x35baf0 0x35deb0 Dev CE (experimental): Map.SetRevealedResourceType edit_call, writes
Player::Visibility::Manager::SetRevealedRouteType bool Map::Player::Visibility::Manager::SetRevealedRouteType(Map::Player::Visibility::Manager* this, PlayerTypes ePlayer, int iPlotIndex, RouteTypes eNewType) 0x35bb90 0x35df50 Dev CE (experimental): Map.SetRevealedRouteType edit_call, writes
Plot::Instance::SetAppeal void Map::Plot::Instance::SetAppeal(Map::Plot::Instance* this, int iAppeal) 0x60630 0x61270 via CE: Plot.SetAppeal
Region::RegionSplitter::BuildContinentFromMark void Map::Region::RegionSplitter::BuildContinentFromMark(Map::Region::RegionSplitter* this, ContinentList& aOutContinentList, const Types::ArrayWrapper<ContinentTypes> aContinentIndices, const MarkGrid& kGrid, uint8 mMark) 0x5ceda0 0x5cfae0 no writes
Route::Manager::RemoveAllPortalsAtPlot void Map::Route::Manager::RemoveAllPortalsAtPlot(Map::Route::Manager* this, const PlotCoord& kLocation) 0x63b80 0x64820 no writes
Route::Portal::AreaInstance::AttachAreas void Map::Route::Portal::AreaInstance::AttachAreas(Map::Route::Portal::AreaInstance* this) 0x62830 0x634d0 Dev CE (experimental): MapAreaPortal.AttachAreas writes
StartPositioner::SetPlotStartPositionState void Map::StartPositioner::SetPlotStartPositionState(Map::StartPositioner* this, int iPlot, bool bIsStartPos) 0x5d7580 0x5d8020 no event, writes
Terrain::CoastalLowlandDataHandler::SetFlooded void Map::Terrain::CoastalLowlandDataHandler::SetFlooded(Map::Terrain::CoastalLowlandDataHandler* this, int iPlotIndex, bool bNewValue) 0x738f50 0x739890 no edit_call, event, writes
Terrain::CoastalLowlandDataHandler::SetProtected void Map::Terrain::CoastalLowlandDataHandler::SetProtected(Map::Terrain::CoastalLowlandDataHandler* this, int iPlotIndex, bool bNewValue) 0x739150 0x739a90 no edit_call, event, writes
Territory::Builder::AddPlotToTerritory void Map::Territory::Builder::AddPlotToTerritory(const Map::Territory::Builder* this, Map::Territory::Container* pContainer, Map::Territory::Instance* pTerritory, PlotCoord kPlotCoord) 0x2ee50 0x2f390 no writes
Territory::Instance::SetIsSea void Map::Territory::Instance::SetIsSea(Map::Territory::Instance* this, bool bIsSea) 0x2c7f0 0x2ce60 Dev CE (experimental): Territory.SetIsSea writes
UnitContainer::AddLayer Map::SparseComponentIDGrid* Map::UnitContainer::AddLayer(Map::UnitContainer* this, uint uiLayerID) 0x55470 0x560b0 no writes
UnitContainer::DestroyLayers void Map::UnitContainer::DestroyLayers(Map::UnitContainer* this) 0x559e0 0x56620 no writes

Notes (★)

Map::Feature::Manager::SetVolcanoActive

Randomly activates one dormant volcano, if fewer are active than intended. It does not take a target volcano.

Map::Feature::Manager::SetVolcanoInactive

Randomly deactivates one active volcano. Mirror of SetVolcanoActive.