bool isNone ()
bool () - valid CyMap() interface
void erasePlots ()
() - erases the plots
void setRevealedPlots (
TeamType eTeam,
bool bNewValue,
bool bTerrainOnly)
void (int /*TeamTypes*/ eTeam, bool bNewValue, bool bTerrainOnly) - reveals the plots to eTeam
void setAllPlotTypes (
PlotType ePlotType)
void (int /*PlotTypes*/ ePlotType) - sets all plots to ePlotType
void updateVisibility ()
() - updates the plots visibility
CyPlot syncRandPlot (
int iFlags,
int iArea,
int iMinUnitDistance,
int iTimeout)
CyPlot* (iFlags,iArea,iMinUnitDistance,iTimeout) - random plot based on conditions
CyCity findCity (
int iX,
int iY,
PlayerType eOwner,
TeamType eTeam,
bool bSameArea,
bool bCoastalOnly,
TeamTypes eTeamAtWarWith,
DirectionTypes eDirection,
CyCity pSkipCity)
CyCity* (int iX, int iY, int (PlayerTypes) eOwner = NO_PLAYER, int (TeamTypes) eTeam = NO_TEAM, bool bSameArea = true, bool bCoastalOnly = false, int (TeamTypes) eTeamAtWarWith = NO_TEAM, int (DirectionTypes) eDirection = NO_DIRECTION, CvCity* pSkipCity = NULL) - finds city
CvSelectionGroup findSelectionGroup (
int iX,
int iY,
PlayerType eOwner,
bool bReadyToSelect,
bool bWorker)
CvSelectionGroup* (int iX, int iY, int /*PlayerTypes*/ eOwner, bool bReadyToSelect, bool bWorkers)
CyArea findBiggestArea ()
CyArea* ()
int getMapFractalFlags ()
int ()
bool findWater (
CyPlot pPlot,
int iRange,
bool bFreshWater)
bool (CyPlot* pPlot, int iRange, bool bFreshWater)
bool isPlot (
int iX,
int iY)
bool (iX,iY) - is (iX, iY) a valid plot?
int numPlots ()
int () - total plots in the map
int plotNum (
int iX,
int iY)
int (iX,iY) - the index for a given plot
int plotX (
int iIndex)
int (iIndex) - given the index of a plot, returns its X coordinate
int plotY (
int iIndex)
int (iIndex) - given the index of a plot, returns its Y coordinate
int getGridWidth ()
int () - the width of the map, in plots
int getGridHeight ()
int () - the height of the map, in plots
int getLandPlots ()
int () - total land plots
int getOwnedPlots ()
int () - total owned plots
int getTopLatitude ()
int () - top latitude (usually 90)
int getBottomLatitude ()
int () - bottom latitude (usually -90)
int getNextRiverID ()
int ()
void incrementNextRiverID ()
void ()
bool isWrapX ()
bool () - whether the map wraps in the X axis
bool isWrapY ()
bool () - whether the map wraps in the Y axis
string getMapScriptName ()
wstring () - name of the map script
WorldSizeTypes getWorldSize ()
WorldSizeTypes () - size of the world
ClimateTypes getClimate ()
ClimateTypes () - climate of the world
SeaLevelTypes getSeaLevel ()
SeaLevelTypes () - sealevel of the world
int getNumCustomMapOptions ()
int () - number of custom map settings
CustomMapOptionTypes getCustomMapOption ()
CustomMapOptionTypes () - user defined map setting at this option id
int getNumBonuses ()
int () - total bonuses
int getNumBonusesOnLand ()
int () - total bonuses on land plots
CyPlot plotByIndex (
int iIndex)
CyPlot (iIndex) - get a plot by its Index
CyPlot sPlotByIndex (
int iIndex)
CyPlot (iIndex) - static - get plot by iIndex
CyPlot plot (
int iX,
int iY)
CyPlot (iX,iY) - get CyPlot at (iX,iY)
CyPlot sPlot (
int iX,
int iY)
CyPlot (iX,iY) - static - get CyPlot at (iX,iY)
int getIndexAfterLastArea ()
int () - index for handling NULL areas
int getNumAreas ()
int () - total areas
int getNumLandAreas ()
int () - total land areas
CyArea getArea (
int iID)
CyArea (iID) - get CyArea at iID
void recalculateAreas ()
void () - Recalculates the areaID for each plot. Should be preceded by CyMap.setPlotTypes(...)
void resetPathDistance ()
void ()
int calculatePathDistance ()
finds the shortest passable path between two CyPlots and returns its length, or returns -1 if no such path exists. Note: the path must be all-land or all-water
void rebuild ()
used to initialize the map during WorldBuilder load
void regenerateGameElements ()
used to regenerate everything but the terrain and height maps
void updateFog ()
void ()
void updateMinimapColor ()
void ()
void updateMinOriginalStartDist (
CyArea pArea)
void (CyArea* pArea)