bool isNone ()
bool ()
void erase ()
void ()
NiPoint3 getPoint ()
NiPoint3 ()
int getTeam ()
int ()
void nukeExplosion (
int iRange,
CyUnit pNukeUnit)
void (int iRange, CyUnit* pNukeUnit)
bool isConnectedTo (
CyCity pCity)
bool (CvCity* pCity) - returns whether this plot is connected to the provided city
bool isConnectedToCapital (
PlayerType ePlayer)
bool (int (PlayerTypes) ePlayer) - returns whether this plot is connected to the capital of the provided player
int getPlotGroupConnectedBonus (
PlayerType ePlayer,
BonusType eBonus)
int (int (PlayerTypes) ePlayer, int (BonusTypes) eBonus)
bool isPlotGroupConnectedBonus (
PlayerType ePlayer,
BonusType eBonus)
bool (int (PlayerTypes) ePlayer, int (BonusTypes) eBonus)
bool isAdjacentPlotGroupConnectedBonus (
PlayerType ePlayer,
BonusType eBonus)
bool (int (PlayerTypes) ePlayer, int (BonusTypes) eBonus)
void updateVisibility ()
void () Refreshes all of the plots
bool isAdjacentToArea (
CyArea iAreaID)
bool (CyArea)
bool shareAdjacentArea (
CyPlot pPlot)
bool (CyPlot)
bool isAdjacentToLand ()
bool ()
bool isCoastalLand ()
bool ()
bool isWithinTeamCityRadius (
TeamType eTeam,
PlayerType eIgnorePlayer)
bool (int /*TeamTypes*/ eTeam, int /*PlayerTypes*/ eIgnorePlayer)
bool isLake ()
bool ()
bool isFreshWater ()
bool ()
bool isPotentialIrrigation ()
bool ()
bool canHavePotentialIrrigation ()
bool ()
bool isIrrigationAvailable (
bool bIgnoreSelf)
bool (bool bIgnoreSelf)
bool isRiverSide ()
bool ()
bool isRiver ()
bool ()
bool isRiverConnection (
DirectionType eDirection)
bool (int /*DirectionTypes*/ eDirection)
int getNearestLandArea ()
int ()
CyPlot getNearestLandPlot ()
CyPlot* ()
int seeFromLevel (
int eTeam)
int (int eTeam)
int seeThroughLevel ()
int ()
bool canHaveBonus (
BonusType eBonus,
bool bIgnoreLatitude)
bool (int /*BonusTypes*/ eBonus, bool bIgnoreLatitude)
bool canHaveImprovement (
ImprovementType eImprovement,
TeamType eTeam,
bool bPotential)
bool (int (ImprovementTypes) eImprovement, int (TeamTypes) eTeam, bool bPotential)
bool canBuild (
BuildType eBuild,
PlayerType ePlayer,
bool bTestVisible)
bool (int (BuildTypes) eBuild, int (PlayerTypes) ePlayer, bool bTestVisible)
int getBuildTime (
BuildType eBuild)
int (int /*BuildTypes*/ eBuild)
int getBuildTurnsLeft (
BuildType eBuild,
int iNowExtra,
int iThenExtra)
int (int (BuildTypes) eBuild, int iNowExtra, int iThenExtra)
int getFeatureProduction (
BuildType eBuild,
TeamType eTeam,
CyCity ppCity)
int (int (BuildTypes) eBuild, int (TeamTypes) eTeam, CvCity** ppCity)
CyUnit getBestDefender (
PlayerType eOwner,
PlayerType eAttackingPlayer,
CyUnit pAttacker,
bool bTestAtWar,
bool bTestPotentialEnemy,
bool bTestCanMove)
CyUnit* (int (PlayerTypes) eOwner, int (PlayerTypes) eAttackingPlayer, CvUnit* pAttacker, bool bTestAtWar, bool bTestPotentialEnemy, bool bTestCanMove)
CyUnit getSelectedUnit ()
CyUnit* ()
int getUnitPower (
PlayerType eOwner)
int (int /*PlayerTypes*/ eOwner)
int defenseModifier (
TeamType eDefender,
bool bIgnoreBuilding,
bool bHelp)
int (int /*TeamTypes*/, bool bIgnoreBuilding, bool bHelp)
int movementCost (
CyUnit pUnit,
CyPlot pFromPlot)
int (CyUnit* pUnit, CyPlot* pFromPlot)
int getExtraMovePathCost ()
BtS Only
int ()
int changeExtraMovePathCost (
int iChange)
BtS Only
int (int iChange)
bool isAdjacentOwned ()
bool ()
bool isAdjacentPlayer (
PlayerType ePlayer,
bool bLandOnly)
bool (int /*PlayerTypes*/ ePlayer, bool bLandOnly)
bool isAdjacentTeam (
TeamType eTeam,
bool bLandOnly)
bool (int /*TeamTypes*/ eTeam, bool bLandOnly)
bool isWithinCultureRange (
PlayerType ePlayer)
bool (int /*PlayerTypes*/ ePlayer)
bool getNumCultureRangeCities (
PlayerType ePlayer)
bool (int /*PlayerTypes*/ ePlayer)
int calculateCulturalOwner ()
int ()
bool isOwned ()
bool ()
bool isBarbarian ()
bool ()
bool isRevealedBarbarian ()
bool ()
bool isVisible (
TeamType eTeam,
bool bDebug)
bool (int /*TeamTypes*/ eTeam, bool bDebug)
bool isActiveVisible (
bool bDebug)
bool (bool bDebug)
bool isVisibleToWatchingHuman ()
bool ()
void removeGoody ()
void ()
bool isGoody ()
bool ()
bool isRevealedGoody (
TeamType eTeam)
bool (int (TeamTypes) eTeam)
bool isCity ()
bool ()
bool isFriendlyCity (
CyUnit pUnit,
bool bCheckImprovement)
bool (CyUnit* pUnit, bool bCheckImprovement)
bool isEnemyCity (
CyUnit pUnit)
bool (CyUnit* pUnit)
bool isOccupation ()
bool ()
bool isBeingWorked ()
bool ()
bool isUnit ()
bool ()
bool isInvestigate (
TeamType eTeam)
bool (int /*TeamTypes*/ eTeam)
bool isVisibleEnemyDefender (
CyUnit pUnit)
bool (CyUnit* pUnit)
int getNumDefenders (
PlayerType ePlayer)
int (int /*PlayerTypes*/ ePlayer)
int getNumVisibleEnemyDefenders (
CyUnit pUnit)
int (CyUnit* pUnit)
int getNumVisiblePotentialEnemyDefenders (
CyUnit pUnit)
int (CyUnit* pUnit)
bool isVisibleEnemyUnit (
PlayerType ePlayer)
bool (int /*PlayerTypes*/ ePlayer)
bool isVisibleOtherUnit (
PlayerType ePlayer)
bool (int /*PlayerTypes*/ ePlayer)
bool isFighting ()
bool ()
bool canHaveFeature (
FeatureType eFeature)
bool (int /*FeatureTypes*/ eFeature)
bool isRoute ()
bool ()
bool isNetworkTerrain (
TeamType eTeam)
bool (int (TeamTypes) eTeam)
bool isBonusNetwork (
TeamType eTeam)
bool (int (TeamTypes) eTeam)
bool isTradeNetworkImpassable (
TeamType eTeam)
bool (int (TeamTypes) eTeam)
bool isTradeNetwork (
int eTeam)
bool (int eTeam)
bool isTradeNetworkConnected (
CyPlot pPlot,
int eTeam)
bool (CyPlot, int eTeam)
bool isValidDomainForLocation (
CyUnit pUnit)
bool (CyUnit* pUnit)
bool isValidDomainForAction (
CyUnit pUnit)
bool (CyUnit* pUnit)
bool isImpassable ()
bool ()
int getX ()
int ()
int getY ()
int ()
bool at (
int iX,
int iY)
bool (int iX, int iY)
int getLatitude ()
int ()
CyArea area ()
CyArea* ()
CyArea waterArea ()
CyArea* ()
int getArea ()
int ()
int getFeatureVariety ()
int ()
int getOwnershipDuration ()
int ()
int isOwnershipScore ()
int ()
int setOwnershipDuration (
int iNewValue)
int (int iNewValue)
int changeOwnershipDuration (
int iChange)
int (int iChange)
int getImprovementDuration ()
int ()
int setImprovementDuration (
int iNewValue)
int (int iNewValue)
int changeImprovementDuration (
int iChange)
int (int iChange)
int getUpgradeProgress ()
int ()
int getUpgradeTimeLeft (
ImprovementType eImprovement,
PlayerType ePlayer)
int (int /*ImprovementTypes*/ eImprovement, int /*PlayerTypes*/ ePlayer)
void setUpgradeProgress (
int iNewValue)
void (int iNewValue)
void changeUpgradeProgress (
int iChange)
void (int iChange)
int getForceUnownedTimer ()
int ()
int isForceUnowned ()
int ()
void setForceUnownedTimer (
int iNewValue)
void (int iNewValue)
void changeForceUnownedTimer (
int iChange)
void (int iChange)
int getCityRadiusCount ()
int ()
int isCityRadius ()
int ()
bool isStartingPlot ()
bool ()
void setStartingPlot (
bool bNewValue)
void (bool bNewValue)
bool isNOfRiver ()
bool ()
void setNOfRiver (
bool bNewValue,
CardinalDirectionTypes eRiverDir)
void (bool bNewValue, CardinalDirectionTypes eRiverDir)
bool isWOfRiver ()
bool ()
void setWOfRiver (
bool bNewValue,
CardinalDirectionTypes eRiverDir)
void (bool bNewValue, CardinalDirectionTypes eRiverDir)
CardinalDirectionTypes getRiverWEDirection ()
CardinalDirectionTypes ()
CardinalDirectionTypes getRiverNSDirection ()
CardinalDirectionTypes ()
bool isIrrigated ()
bool ()
bool isPotentialCityWork ()
bool ()
bool isPotentialCityWorkForArea (
CyArea pArea)
bool (CyArea* pArea)
bool isFlagDirty ()
bool ()
void setFlagDirty (
bool bNewValue)
void (bool bNewValue)
int getOwner ()
int ()
void setOwner (
PlayerType eNewValue)
void (int /*PlayerTypes*/ eNewValue)
int getPlotType ()
int ()
bool isWater ()
bool ()
bool isFlatlands ()
bool ()
bool isHills ()
bool ()
bool isPeak ()
bool ()
void setPlotType (
PlotTypes eNewValue,
bool bRecalculate,
bool bRebuildGraphic)
void (PlotTypes eNewValue, bool bRecalculate, bool bRebuildGraphics)
int getTerrainType ()
int ()
void setTerrainType (
TerrainTypes eNewValue,
bool bRecalculate,
bool bRebuildGraphic)
void (TerrainTypes eNewValue, bool bRecalculate, bool bRebuildGraphics)
int getFeatureType ()
int ()
void setFeatureType (
FeatureType eNewValue,
int iVariety)
void (int /*FeatureTypes*/ eNewValue, int iVariety)
void setFeatureDummyVisibility (
string dummyTag,
bool show)
BtS Only
void (string dummyTag, bool show)
void addFeatureDummyModel (
string dummyTag,
string modelTag)
BtS Only
void (string dummyTag, string modelTag)
void setFeatureDummyTexture (
string dummyTag,
string textureTag)
BtS Only
void (string dummyTag, string textureTag)
string pickFeatureDummyTag (
int mouseX,
int mouseY)
BtS Only
string (int mouseX, int mouseY)
void resetFeatureModel ()
BtS Only
void ()
int getBonusType (
TeamType eTeam)
int (int /*TeamTypes*/ eTeam)
int getNonObsoleteBonusType (
TeamType eTeam)
int (int /*TeamTypes*/ eTeam)
void setBonusType (
int eNewValue)
void (int eNewValue)
int getImprovementType ()
int ()
void setImprovementType (
int eNewValue)
void (int eNewValue)
int getRouteType ()
int ()
void setRouteType (
RouteType eNewValue)
void (int (RouteTypes) eNewValue)
CyCity getPlotCity ()
CyCity* ()
CyCity getWorkingCity ()
CyCity* ()
CyCity getWorkingCityOverride ()
CyCity* ()
int getRiverID ()
int ()
void setRiverID (
int)
void (int)
int getMinOriginalStartDist ()
int ()
int getReconCount ()
int ()
int getRiverCrossingCount ()
int ()
int getYield (
YieldTypes eIndex)
int (YieldTypes eIndex)
int calculateNatureYield (
YieldType eYield,
TeamType eTeam,
bool bIgnoreFeature)
int (int (YieldTypes) eYield, int (TeamTypes) eTeam, bool bIgnoreFeature)
int calculateBestNatureYield (
YieldType eYield,
TeamType eTeam)
int (int (YieldTypes) eYield, int (TeamTypes) eTeam)
int calculateTotalBestNatureYield (
TeamType eTeam)
int (int (TeamTypes) eTeam)
int calculateImprovementYieldChange (
ImprovementType eImprovement,
YieldType eYield,
PlayerType ePlayer,
bool bOptimal)
int (int (ImprovementTypes) eImprovement, int (YieldTypes) eYield, int (PlayerTypes) ePlayer, bool bOptimal)
int calculateYield (
YieldTypes eYield,
bool bDisplay)
int (YieldTypes eYield, bool bDisplay)
bool hasYield ()
bool ()
int getCulture (
PlayerType eIndex)
int (int /*PlayerTypes*/ eIndex)
int countTotalCulture ()
int ()
int findHighestCultureTeam ()
int /*TeamTypes*/ ()
int calculateCulturePercent (
PlayerType eIndex)
int (int /*PlayerTypes*/ eIndex)
int calculateTeamCulturePercent (
TeamType eIndex)
int (int /*TeamTypes*/ eIndex)
void setCulture (
PlayerType eIndex,
int iNewValue,
bool bUpdate)
void (int /*PlayerTypes*/ eIndex, int iNewValue, bool bUpdate)
void changeCulture (
PlayerType eIndex,
int iChange,
bool bUpdate)
void (int /*PlayerTypes*/ eIndex, int iChange, bool bUpdate)
int countNumAirUnits (
TeamType ePlayer)
BtS Only
int (int /*TeamTypes*/ ePlayer)
int getFoundValue (
PlayerType eIndex)
int (int /*PlayerTypes*/ eIndex)
bool isBestAdjacentFound (
PlayerType eIndex)
bool (int /*PlayerTypes*/ eIndex)
int getPlayerCityRadiusCount (
PlayerType eIndex)
int (int /*PlayerTypes*/ eIndex)
bool isPlayerCityRadius (
PlayerType eIndex)
bool (int /*PlayerTypes*/ eIndex)
int getVisibilityCount (
TeamType eTeam)
int (int /*TeamTypes*/ eTeam)
void changeVisibilityCount (
TeamType eTeam,
int iChange,
InvisibleType eSeeInvisible)
void (int (TeamTypes) eTeam, int iChange, int (InvisibleTypes) eSeeInvisible)
int getStolenVisibilityCount (
TeamType eTeam)
int (int /*TeamTypes*/ eTeam)
int getRevealedOwner (
TeamType eTeam,
bool bDebug)
int (int (TeamTypes) eTeam, bool bDebug)
int getRevealedTeam (
TeamType eTeam,
bool bDebug)
int (int /*TeamTypes*/ eTeam, bool bDebug)
bool isRiverCrossing (
DirectionTypes eIndex)
bool (DirectionTypes eIndex)
bool isRevealed (
TeamType eTeam,
bool bDebug)
bool (int /*TeamTypes*/ eTeam, bool bDebug)
void setRevealed (
TeamType eTeam,
bool bNewValue,
bool bTerrainOnly,
TeamType eFromTeam)
void (int /*TeamTypes*/ eTeam, bool bNewValue, bool bTerrainOnly, int /*TeamTypes*/ eFromTeam)
int getRevealedImprovementType (
TeamType eTeam,
bool bDebug)
int (int /*TeamTypes*/ eTeam, bool bDebug)
int getRevealedRouteType (
TeamType eTeam,
bool bDebug)
int (int /*TeamTypes*/ eTeam, bool bDebug)
int getBuildProgress (
BuildType eBuild)
int (int /*BuildTypes*/ eBuild)
bool changeBuildProgress (
BuildType eBuild,
int iChange,
TeamType eTeam)
bool (int /*BuildTypes*/ eBuild, int iChange, int /*TeamTypes*/ eTeam)
int getCultureRangeCities (
PlayerType eOwnerIndex,
int iRangeIndex)
int (int /*PlayerTypes*/ eOwnerIndex, int iRangeIndex)
bool isCultureRangeCity (
PlayerType eOwnerIndex,
int iRangeIndex)
bool (int /*PlayerTypes*/ eOwnerIndex, int iRangeIndex)
int getInvisibleVisibilityCount (
TeamTypes eTeam,
InvisibleType eInvisible)
int (int (TeamTypes eTeam), int (InvisibleTypes) eInvisible)
int isInvisibleVisible (
TeamTypes eTeam,
InvisibleType eInvisible)
int (int (TeamTypes eTeam), int (InvisibleTypes) eInvisible)
int changeInvisibleVisibilityCount (
TeamTypes eTeam,
InvisibleType eInvisible,
int iChange)
int (int (TeamTypes eTeam), int (InvisibleTypes) eInvisible, int iChange)
int getNumUnits ()
int ()
CyUnit getUnit (
int iIndex)
CyUnit* (int iIndex)
string getScriptData ()
str () - Get stored custom data
void setScriptData (
string szNewVal)
void (str) - Set stored custom data