CyCity
void isNone ()
void () - is the instance valid?
void kill ()
void () - kill the city
void doTask (int eTaskTypes, int iData1, int iData2, bool bOption)
void (int eTaskTypes, int iData1, int iData2, bool bOption) - Enacts the TaskType passed
void chooseProduction (UnitType eTrainUnit, BuildingType eConstructBuilding, ProjectType eCreateProject, bool bFinish, bool bFront)
void (int /*UnitTypes*/ eTrainUnit, int /*BuildingTypes*/ eConstructBuilding, int /*ProjectTypes*/ eCreateProject, bool bFinish, bool bFront) - Chooses production for a city
void createGreatPeople (UnitType eGreatPersonUnit, bool bIncrementThreshold)
void (int /*UnitTypes*/ eGreatPersonUnit, bool bIncrementThreshold) - Creates a great person in this city and whether it should increment the threshold to the next level
int getCityPlotIndex (CyPlot pPlot)
int (CyPlot* pPlot)
CyPlot getCityIndexPlot (int iIndex)
CyPlot* (int iIndex)
bool canWork (CyPlot pPlot)
bool (CyPlot*) - can the city work the plot?
void clearWorkingOverride (int iIndex)
void (int iIndex)
int countNumImprovedPlots ()
int ()
int countNumWaterPlots ()
int ()
int countNumRiverPlots () BtS Only
int ()
int findPopulationRank ()
int ()
int findBaseYieldRateRank (YieldType eYield)
int (int /*YieldTypes*/ eYield)
int findYieldRateRank (YieldType eYield)
int (int /*YieldTypes*/ eYield)
int findCommerceRateRank (CommerceType eCommerce)
int (int /*CommerceTypes*/ eCommerce)
int allUpgradesAvailable (int eUnit, int iUpgradeCount)
int UnitTypes (int eUnit, int iUpgradeCount)
bool isWorldWondersMaxed ()
bool ()
bool isTeamWondersMaxed ()
bool ()
bool isNationalWondersMaxed ()
bool ()
bool isBuildingsMaxed ()
bool ()
bool canTrain (int eUnit, bool bContinue, bool bTestVisible)
bool (int eUnit, bool bContinue, bool bTestVisible)
bool canConstruct (int eBuilding, bool bContinue, bool bTestVisible, bool bIgnoreCost)
bool (int eBuilding, bool bContinue, bool bTestVisible, bool bIgnoreCost)
bool canCreate (int eProject, bool bContinue, bool bTestVisible)
bool (int eProject, bool bContinue, bool bTestVisible)
bool canMaintain (int eProcess, bool bContinue)
bool (int eProcess, bool bContinue)
bool canJoin ()
bool () - can a Great Person join the city
int getFoodTurnsLeft ()
int () - how many food turns remain?
bool isProduction ()
bool () - is city producing?
bool isProductionLimited ()
bool ()
bool isProductionUnit ()
bool () - is city training a unit?
bool isProductionBuilding ()
bool () - is city constructing a building?
bool isProductionProject ()
bool ()
bool isProductionProcess ()
bool () - is city maintaining a process?
bool canContinueProduction (OrderData order)
bool (OrderData order)
int getProductionExperience (UnitType eUnit)
int (int /*UnitTypes*/ eUnit)
void addProductionExperience (CyUnit pUnit, bool bConscript)
void (CyUnit* pUnit, bool bConscript)
UnitID getProductionUnit ()
UnitID () - ID for unit that is being trained
int getProductionUnitAI ()
int eUnitAIType ()
BuildingID getProductionBuilding ()
BuildingID () - ID for building that is under construction
ProjectTypes getProductionProject ()
int /*ProjectTypes*/ ()
ProcessTypes getProductionProcess ()
int /*ProcessTypes*/ ()
string getProductionName ()
str () - description of item that the city is working on
int getGeneralProductionTurnsLeft ()
int - # of production turns left for the top order node item in a city...
string getProductionNameKey ()
str () - description of item that the city is working on
bool isFoodProduction ()
bool () - is item under construction being created with food instead of production?
int getFirstUnitOrder (UnitType eUnit)
int (int /*UnitTypes*/ eUnit)
int getFirstBuildingOrder (BuildingType eBuilding)
int (int /*BuildingTypes*/ eBuilding)
int getFirstProjectOrder (ProjectType eProject)
int (int /*ProjectTypes*/ eProject)
bool isUnitFoodProduction (UnitID eUnit)
bool (UnitID) - does UnitID require food to be trained?
int getProduction ()
int () - returns the current production towards whatever is top of this city's OrderQueue
int getProductionNeeded ()
int () - # of production needed to complete construction
int getProductionTurnsLeft ()
int () - # of turns remaining until item is completed
int getUnitProductionTurnsLeft (UnitID eUnit, int iNum)
int (UnitID, int iNum) - # of turns remaining to complete UnitID
int getBuildingProductionTurnsLeft (BuildingID eBuilding, int iNum)
int (BuildingID, int iNum) - # of turns remaining to complete UnitID
int getProjectProductionTurnsLeft (ProjectType eProject, int iNum)
int (int /*ProjectTypes*/ eProject, int iNum)
void setProduction (int iNewValue)
void (int iNewValue)
void changeProduction (int iChange)
void (int iChange)
int getProductionModifier ()
int () - multiplier () for item being produced
int getCurrentProductionDifference (bool bIgnoreFood, bool bOverflow)
int (bool bIgnoreFood, bool bOverflow)
int getUnitProductionModifier (UnitID eUnit)
int (UnitID) - production multiplier for UnitID
int getBuildingProductionModifier (BuildingID eBuilding)
int (BuildingID) - production multiplier for BuildingID
int getProjectProductionModifier (ProjectType eProject)
int (int /*ProjectTypes*/ eProject)
int getExtraProductionDifference (int iExtra)
int (int iExtra)
bool canHurry (HurryType eHurry, bool bTestVisible)
bool (HurryTypes eHurry, bool bTestVisible = 0) - can player eHurry in this city?
void hurry (HurryType eHurry)
void (HurryTypes eHurry) - forces the city to rush production using eHurry
UnitID getConscriptUnit ()
UnitID () - UnitID for the best unit the city can conscript
int getConscriptPopulation ()
int ()
int conscriptMinCityPopulation ()
int ()
int flatConscriptAngerLength ()
int ()
bool canConscript ()
bool () - can the city conscript units?
void conscript ()
void () - conscripts a unit
int getBonusHealth (BonusID eBonus)
int (BonusID) - total health bonus from BonusID
int getBonusHappiness (BonusID eBonus)
int (BonusID) - total happiness bonus from BonusID
int getBonusPower (BonusType eBonus, bool bDirty)
int (int /*BonusTypes*/ eBonus, bool bDirty)
int getBonusYieldRateModifier (YieldType eIndex, BonusType eBonus)
int (int /*YieldTypes*/ eIndex, int /*BonusTypes*/ eBonus)
HandicapType getHandicapType ()
HandicapType () - owners difficulty level
CivilizationID getCivilizationType ()
CivilizationID () - owners CivilizationID
LeaderHeadTypes getPersonalityType ()
int /*LeaderHeadTypes*/ ()
ArtStyleTypes getArtStyleType ()
int /*ArtStyleTypes*/ ()
CitySizeTypes getCitySizeType ()
int /*CitySizeTypes*/ ()
bool hasTrait (TraitID eTrait)
bool (TraitID) - does owner have TraitID?
bool isBarbarian ()
bool () - is owner a barbarian?
bool isHuman ()
bool () - is owner human?
bool isVisible (TeamType eTeam, bool bDebug)
bool (int /*TeamTypes*/ eTeam, bool bDebug)
bool isCapital ()
bool () - is city the owners capital?
bool isCoastal (int iMinWaterSize)
bool (int) - is the city on the coast?
bool isDisorder ()
bool () - is the city in disorder?
bool isHolyCityByType (ReligionID eReligion)
bool (ReligionID) - is the city ReligionID's holy city?
bool isHolyCity ()
bool () - is the city ReligionID's holy city?
bool isHeadquartersByType (CorporationID eCorporation) BtS Only
bool (CorporationID) - is the city CorporationID's headquarters?
bool isHeadquarters () BtS Only
bool () - is the city CorporationID's headquarters?
int getOvercrowdingPercentAnger (int iExtra)
int (iExtra)
int getNoMilitaryPercentAnger ()
int ()
int getCulturePercentAnger ()
int ()
int getReligionPercentAnger ()
int ()
int getWarWearinessPercentAnger ()
int ()
int getLargestCityHappiness ()
int ()
int unhappyLevel (int iExtra)
int (int iExtra)
int happyLevel ()
int ()
int angryPopulation (int iExtra)
int (iExtra) - # of unhappy citizens
int extraFreeSpecialists ()
int () - # of specialist that are allowed for free
int extraPopulation ()
int () - # of extra/available citizens
int extraSpecialists ()
int () - # of extra/available specialists
int unhealthyPopulation (bool bNoAngry, int iExtra)
int (bool bNoAngry), int (iExtra)
int totalGoodBuildingHealth ()
int ()
int totalBadBuildingHealth ()
int ()
int goodHealth ()
int () - total health
int badHealth (bool bNoAngry)
int (bool bNoAngry) - total unhealthiness
int healthRate (bool bNoAngry, int iExtra)
int (bool bNoAngry, int iExtra)
int foodConsumption (bool bNoAngry, int iExtra)
int (bool bNoAngry, int iExtra)
int foodDifference (bool bBottom)
int (bool bBottom) - result of getYieldRate(Food) - foodConsumption()
int growthThreshold ()
int () - value needed for growth
int productionLeft ()
int () - result of (getProductionNeeded() - getProduction()
int hurryCost (bool bExtra)
int (bool bExtra)
int hurryGold (HurryID eHurry)
int (HurryID) - total value of gold when hurrying
int hurryPopulation (HurryID eHurry )
int (HurryID) - value of each pop when hurrying
int hurryProduction (HurryID eHurry)
int (HurryID)
int flatHurryAngerLength ()
int ()
int hurryAngerLength (HurryID eHurry)
int (HurryID)
int maxHurryPopulation ()
int ()
int cultureDistance (int iDX, int iDY)
int (iDX, iDY) - culture distance
int cultureStrength (Player iPlayer)
int (ePlayer)
int cultureGarrison (Player iPlayer)
int (ePlayer)
int getNumBuilding (BuildingID eBuilding)
int - (BuildingID) - How many BuildingID does this city have (real or free)?
bool isHasBuilding (int iBuildingID) BtS Only
bool (int iBuildingID) - This function actually no longer exists in C++, this is a helper function which hooks up to getNumBuilding() to help mod backwards compatibility
bool getNumActiveBuilding (BuildingID eBuilding) BtS Only
bool (BuildingID) - is BuildingID active in the city (present & not obsolete)?
int getID ()
int () - index ID # for the city - use with pPlayer.getCity(ID) to obtain city instance
int getX ()
int () - X coordinate for the cities plot
int getY ()
int () - Y coordinate for the cities plot
bool at (int iX, int iY)
bool (iX, iY) - is the city at (iX, iY) ?
bool atPlot (CyPlot pPlot)
bool (CyPlot) - is pPlot the cities plot?
CyPlot plot ()
CyPlot () - returns cities plot instance
bool isConnectedTo (CyCity pCity)
bool (CyCity*) - is city connected to CyCity* via the Trade Network?
bool isConnectedToCapital (Player iOwner)
bool (iOwner) - connected to the capital?
CyArea area ()
CyArea() () - returns CyArea instance for location of city
CyArea waterArea ()
CyArea* ()
CyPlot getRallyPlot ()
CyPlot () - returns city's rally plot instance
int getGameTurnFounded ()
int () - GameTurn the city was founded
int getGameTurnAcquired ()
int ()
int getPopulation ()
int () - total city population
void setPopulation (int iNewValue)
void (int iNewValue) - sets the city population to iNewValue
void changePopulation (int iChange)
void (int iChange) - adjusts the city population by iChange
int getRealPopulation ()
int () - total city population in \"real\" numbers
int getHighestPopulation ()
int ())
void setHighestPopulation (int iNewValue)
void (iNewValue)
int getWorkingPopulation ()
int () - # of citizens who are working
int getSpecialistPopulation ()
int () - # of specialists
int getNumGreatPeople ()
int () - # of great people who are joined to the city
int getBaseGreatPeopleRate ()
int () - base great person rate
int getGreatPeopleRate ()
int () - total Great Person rate
int getTotalGreatPeopleRateModifier ()
int ()
int getGreatPeopleProgress ()
int () - current great person progress
int getGreatPeopleRateModifier ()
int ()
int getNumWorldWonders ()
int ()
int getNumTeamWonders ()
int ()
int getNumNationalWonders ()
int ()
int getNumBuildings ()
int ()
void changeGreatPeopleProgress (int iChange)
void (int iChange) - adjusts great person progress by iChange
bool isGovernmentCenter ()
bool () - is city the government center?
int getMaintenance ()
int () - cities current maintenance cost
int getMaintenanceTimes100 ()
int () - cities current maintenance cost
int calculateDistanceMaintenance ()
int ()
int calculateDistanceMaintenanceTimes100 ()
int ()
int calculateNumCitiesMaintenance ()
int ()
int calculateNumCitiesMaintenanceTimes100 ()
int ()
int calculateColonyMaintenance () BtS Only
int ()
int calculateColonyMaintenanceTimes100 () BtS Only
int ()
int calculateCorporationMaintenance () BtS Only
int ()
int calculateCorporationMaintenanceTimes100 () BtS Only
int ()
int getMaintenanceModifier ()
int () - total value of the city maintenance modifier
void changeHealRate (int iChange)
void (int iChange) - changes the heal rate of this city to iChange
int getEspionageHealthCounter () BtS Only
int ()
void changeEspionageHealthCounter (int iChange) BtS Only
void (int iChange)
int getEspionageHappinessCounter () BtS Only
int ()
void changeEspionageHappinessCounter (int iChange) BtS Only
void (int iChange)
int getFreshWaterGoodHealth ()
int ()
int getFreshWaterBadHealth ()
int ()
int getBuildingGoodHealth ()
int ()
int getBuildingBadHealth ()
int ()
int getFeatureGoodHealth ()
int () - returns the good health provided by the feature this city is built on
int getFeatureBadHealth ()
int () - returns the bad health provided by the feature this city is built on
int getBuildingHealth (int eBuilding)
int (int eBuilding)
int getPowerGoodHealth ()
int ()
int getPowerBadHealth ()
int ()
int getBonusGoodHealth ()
int ()
int getBonusBadHealth ()
int ()
int getMilitaryHappiness ()
int () - happiness created by military units stationed in the city
int getMilitaryHappinessUnits ()
number of military units creating happiness
int getBuildingGoodHappiness ()
int ()
int getBuildingBadHappiness ()
int ()
int getBuildingHappiness (int eBuilding)
int (int eBuilding)
int getExtraBuildingGoodHappiness ()
int ()
int getExtraBuildingBadHappiness ()
int ()
int getFeatureGoodHappiness ()
int ()
int getFeatureBadHappiness ()
int ()
int getBonusGoodHappiness ()
int ()
int getReligionGoodHappiness ()
int ()
int getReligionBadHappiness ()
int ()
int getReligionHappiness (int eReligion)
int (int eReligion)
int getExtraHappiness ()
int ()
int getExtraHealth () BtS Only
int ()
void changeExtraHealth (int iChange) BtS Only
void (int iChange)
void changeExtraHappiness (int iChange)
void (int iChange)
int getHurryAngerTimer ()
int () - Anger caused by Hurrying timer
void changeHurryAngerTimer (int iChange)
void (iChange) - adjust Hurry Angry timer by iChange
int getConscriptAngerTimer ()
int () - returns the amount of time left on the conscript anger timer
void changeConscriptAngerTimer (int iChange)
void (int iChange) -changes the amount of time left on the conscript anger timer
int getDefyResolutionAngerTimer () BtS Only
int () - returns the amount of time left on the anger timer
void changeDefyResolutionAngerTimer (int iChange) BtS Only
void (int iChange) -changes the amount of time left on the anger timer
int flatDefyResolutionAngerLength () BtS Only
int ()
int getHappinessTimer () BtS Only
int () - Temporary Happiness timer
void changeHappinessTimer (int iChange) BtS Only
void (iChange) - adjust Happiness timer by iChange
bool isNoUnhappiness ()
bool () - is the city unaffected by unhappiness?
bool isNoUnhealthyPopulation ()
bool () - is the city unaffected by unhealthiness?
bool isBuildingOnlyHealthy ()
bool () - is the city ?
int getFood ()
int () - stored food
void setFood (int iNewValue)
void (iNewValue) - set stored food to iNewValue
void changeFood (int iChange)
void (iChange) - adjust stored food by iChange
int getFoodKept ()
int ()
int getMaxFoodKeptPercent ()
int ()
int getOverflowProduction ()
int () - value of overflow production
void setOverflowProduction (int iNewValue)
void (iNewValue) - set overflow production to iNewValue
int getFeatureProduction ()
int () - value of feature production
void setFeatureProduction (int iNewValue)
void (iNewValue) - set feature production to iNewValue
int getMilitaryProductionModifier ()
int () - value of adjustments to military production
int getSpaceProductionModifier ()
int ()
int getExtraTradeRoutes ()
int () - returns the number of extra trade routes this city has
void changeExtraTradeRoutes (int iChange) BtS Only
void (iChange) - Change the number of trade routes this city has
int getTradeRouteModifier ()
int ()
int getForeignTradeRouteModifier () BtS Only
int ()
int getBuildingDefense ()
int () - building defense
int getBuildingBombardDefense ()
int () - building defense
int getFreeExperience ()
int () - # of free experience newly trained units receive
int getCurrAirlift ()
int ()
int getMaxAirlift ()
int ()
int getAirModifier ()
int () - returns the air defense modifier
int getAirUnitCapacity (TeamType eTeam) BtS Only
int (int /*TeamTypes*/ eTeam) - returns the number of air units allowed here
int getNukeModifier ()
int ()
int getFreeSpecialist ()
int ()
bool isPower ()
bool ()
bool isAreaCleanPower ()
bool ()
bool isDirtyPower ()
bool ()
int getDefenseDamage ()
int () - value of damage city defenses can receive
void changeDefenseDamage (int iChange)
void (iChange) - adjust damage value by iChange
bool isBombardable (CyUnit pUnit)
bool (CyUnit* pUnit)
int getNaturalDefense ()
int ()
int getTotalDefense (bool bIgnoreBuilding)
int (bool bIgnoreBuilding)
int getDefenseModifier (bool bIgnoreBuilding)
int (bool bIgnoreBuilding)
int getOccupationTimer ()
int () - total # of turns remaining on occupation timer
bool isOccupation ()
bool () - is the city under occupation?
void setOccupationTimer (int iNewValue)
void (iNewValue) - set the Occupation Timer to iNewValue
void changeOccupationTimer (int iChange)
void (iChange) - adjusts the Occupation Timer by iChange
int getCultureUpdateTimer () BtS Only
int () - Culture Update Timer
void changeCultureUpdateTimer (int iChange) BtS Only
void (iChange) - adjusts the Culture Update Timer by iChange
bool isNeverLost ()
bool ()
void setNeverLost (int iNewValue)
void (iNewValue)
bool isBombarded ()
bool ()
void setBombarded (int iNewValue)
void (iNewValue)
bool isDrafted ()
bool ()
void setDrafted (int iNewValue)
void (iNewValue)
bool isAirliftTargeted ()
bool ()
void setAirliftTargeted (int iNewValue)
void (iNewValue)
bool isCitizensAutomated ()
bool () - are citizens under automation?
void setCitizensAutomated (bool bNewValue)
void (bool bNewValue) - set city animation bNewValue
bool isProductionAutomated ()
bool () - is production under automation?
void setProductionAutomated (bool bNewValue)
void (bool bNewValue) - set city production automation to bNewValue
bool isWallOverride ()
bool isWallOverride()
void setWallOverride (bool bOverRide)
setWallOverride(bool bOverride)
void setCitySizeBoost (int iBoost)
setCitySizeBoost(int iBoost)
bool isPlundered () BtS Only
bool ()
void setPlundered (int iNewValue) BtS Only
void (iNewValue)
PlayerTypes getOwner ()
int /*PlayerTypes*/ ()
TeamTypes getTeam ()
int /*TeamTypes*/ ()
PlayerTypes getPreviousOwner ()
int /*PlayerTypes*/ ()
PlayerTypes getOriginalOwner ()
int /*PlayerTypes*/ ()
CultureLevelTypes getCultureLevel ()
int /*CultureLevelTypes*/ ()
int getSeaPlotYield (YieldTypes eYield)
int (int /*YieldTypes*/) - total YieldType for water plots
int getRiverPlotYield (YieldTypes eYield) BtS Only
int (int /*YieldTypes*/) - total YieldType for river plots
int getBaseYieldRate (YieldTypes eYield)
int (int /*YieldTypes*/) - base rate for YieldType
int setBaseYieldRate (YieldTypes eYield, int iNewValue) BtS Only
int (int /*YieldTypes*/, int iNewValue) - sets the base rate for YieldType
int changeBaseYieldRate (YieldTypes eYield, int iChange) BtS Only
int (int /*YieldTypes*/, int iChange) - changes the base rate for YieldType
int getYieldRate (YieldTypes eYield)
int (int /*YieldTypes*/) - total value of YieldType
int getYieldRateModifier (YieldTypes eYield)
int (int /*YieldTypes*/) - yield rate modifier for YieldType
int getTradeYield (YieldTypes eYield)
int (int /*YieldTypes*/) - trade adjustment to YieldType
int totalTradeModifier ()
int () - total trade adjustment
int calculateTradeProfit (CyCity pCity)
int (CyCity) - returns the trade profit created by CyCity
int calculateTradeYield (YieldTypes eYield, int iTradeProfit)
int (YieldType, int iTradeProfit) - calculates Trade Yield
int getExtraSpecialistYield (YieldTypes eIndex)
int (int /*YieldTypes*/ eIndex)
int getExtraSpecialistYieldOfType (YieldTypes eIndex, SpecialistType eSpecialist)
int (int /*YieldTypes*/ eIndex, int /*SpecialistTypes*/ eSpecialist)
int getCommerceRate (CommerceType eIndex)
int (int /*CommerceTypes*/) - total Commerce rate
int getCommerceRateTimes100 (CommerceType eIndex)
int (int /*CommerceTypes*/) - total Commerce rate
int getCommerceFromPercent (CommerceType eIndex, int iYieldRate)
int (int /*CommerceTypes*/, int iYieldRate)
int getBaseCommerceRate (CommerceType eIndex)
int (int /*CommerceTypes*/)
int getBaseCommerceRateTimes100 (CommerceType eIndex)
int (int /*CommerceTypes*/)
int getTotalCommerceRateModifier (CommerceType eIndex)
int (int /*CommerceTypes*/)
int getProductionToCommerceModifier (CommerceType eIndex)
int (int /*CommerceTypes*/) - value of production to commerce modifier
int getBuildingCommerce (CommerceType eIndex)
int (int /*CommerceTypes*/) - total effect of cities buildings on CommerceTypes
int getBuildingCommerceByBuilding (CommerceType eIndex, BuildingType eBuilding)
int (int /*CommerceTypes*/, BuildingTypes) - total value of CommerceType from BuildingTypes
int getSpecialistCommerce (CommerceType eIndex)
int (int /*CommerceTypes*/) - value of CommerceType adjustment from Specialists
void changeSpecialistCommerce (CommerceType eIndex, int iChange)
void (int /*CommerceTypes*/, iChange) - adjusts Specialist contribution to CommerceType by iChange
int getReligionCommerce (CommerceType eIndex)
int (int /*CommerceTypes*/) - effect on CommerceType by Religions
int getReligionCommerceByReligion (CommerceType eIndex, ReligionType eIndex)
int (int /*CommerceTypes*/, ReligionType) - CommerceType effect from ReligionType
int getCorporationCommerce (CommerceTypeeIndex) BtS Only
int (int /*CommerceTypes*/) - effect on CommerceType by Corporation
int getCorporationCommerceByCorporation (CommerceType eIndex, CorporationType eIndex) BtS Only
int (int /*CommerceTypes*/, CorporationType) - CommerceType effect from CorporationType
int getCorporationYield (CommerceType eIndex) BtS Only
int (int /*CommerceTypes*/) - effect on YieldTypes by Corporation
int getCorporationYieldByCorporation (YieldType eIndex, CorporationType eIndex) BtS Only
int (int /*YieldTypes*/, CorporationType) - YieldTypes effect from CorporationType
int getCommerceRateModifier (CommerceType eIndex)
int (int /*CommerceTypes*/) - indicates the total rate modifier on CommerceType
int getCommerceHappinessPer (CommerceType eIndex)
int (int /*CommerceTypes*/) - happiness from each level of entertainment
int getCommerceHappinessByType (CommerceType eIndex)
int (int /*CommerceTypes*/) - happiness from CommerceType
int getCommerceHappiness ()
int () - happiness from all CommerceTypes
int getDomainFreeExperience (DomainType eIndex)
int (int /*DomainTypes*/)
int getDomainProductionModifier (DomainType eIndex)
int (int /*DomainTypes*/)
PlayerTypes getCulture ()
int /*PlayerTypes*/ ()
PlayerTypes getCultureTimes100 ()
int /*PlayerTypes*/ ()
int countTotalCultureTimes100 ()
int ()
PlayerTypes findHighestCulture ()
PlayerTypes ()
int calculateCulturePercent (int eIndex)
int (int eIndex)
TeamTypes calculateTeamCulturePercent ()
int /*TeamTypes*/ ()
void setCulture (PlayerTypes eIndex, bool bPlots)
void (int PlayerTypes eIndex, bool bPlots)
void setCultureTimes100 (PlayerTypes eIndex, int iNewValue, bool bPlots)
void (int PlayerTypes eIndex, int iNewValue, bool bPlots)
void changeCulture (PlayerTypes eIndex, int iChange, bool bPlots)
void (int PlayerTypes eIndex, int iChange, bool bPlots)
void changeCultureTimes100 (PlayerTypes eIndex, int iChange, bool bPlots)
void (int PlayerTypes eIndex, int iChange, bool bPlots)
bool isTradeRoute ()
bool ()
bool isEverOwned ()
bool ()
bool isRevealed (TeamTypes eIndex, bool bDebug)
bool (int /*TeamTypes*/ eIndex, bool bDebug)
void setRevealed (TeamTypes eIndex, bool bNewValue)
void (int /*TeamTypes*/ eIndex, bool bNewValue)
bool getEspionageVisibility (TeamTypes eIndex) BtS Only
bool (int /*TeamTypes*/ eIndex)
string getName ()
string () - city name
string getNameForm ()
string () - city name
string getNameKey ()
string () - city name
void setName (string szNewValue, bool bFound)
void (TCHAR szNewValue, bool bFound) - sets the name to szNewValue
bool isNoBonus (int eIndex) BtS Only
bool (int eIndex)
void changeNoBonusCount (int eIndex, int iChange) BtS Only
void (int eIndex, int iChange)
int getFreeBonus (int eIndex)
int (int eIndex)
void changeFreeBonus (int eIndex, int iChange) BtS Only
void (int eIndex, int iChange)
int getNumBonuses (PlayerTypes eIndex)
int (PlayerID)
bool hasBonus (BonusTypes eIndex)
bool - (BonusID) - is BonusID connected to the city?
int getBuildingProduction (BuildingTypes eIndex)
int (BuildingID) - current production towards BuildingID
void setBuildingProduction (BuildingTypes BuildingID, int iNewValue)
void (BuildingID, iNewValue) - set progress towards BuildingID as iNewValue
void changeBuildingProduction (BuildingTypes eIndex, int iChange)
void (BuildingID, iChange) - adjusts progress towards BuildingID by iChange
int getBuildingProductionTime (int eIndex)
int (int eIndex)
int setBuildingProductionTime (int eIndex, int iNewValue)
int (int eIndex, int iNewValue)
int changeBuildingProductionTime (int eIndex, int iChange)
int (int eIndex, int iChange)
int getBuildingOriginalOwner (BuildingTypes eIndex)
int (BuildingType) - index of original building owner
int getBuildingOriginalTime (BuildingTypes eIndex)
int (BuildingType) - original build date
int getUnitProduction (UnitTypes eIndex)
int (UnitID) - gets current production towards UnitID
void setUnitProduction (UnitTypes eIndex, int iNewValue)
void (UnitID, iNewValue) - sets production towards UnitID as iNewValue
void changeUnitProduction (UnitTypes eIndex, int iChange)
void (UnitID, iChange) - adjusts production towards UnitID by iChange
int getGreatPeopleUnitRate (UnitTypes iIndex)
int (int /*UnitTypes*/ iIndex)
int getGreatPeopleUnitProgress (UnitTypes iIndex)
int (int /*UnitTypes*/ iIndex)
int setGreatPeopleUnitProgress (UnitTypes iIndex, int iNewValue)
int (int /*UnitTypes*/ iIndex, int iNewValue)
int changeGreatPeopleUnitProgress (UnitTypes iIndex, int iChange)
int (int /*UnitTypes*/ iIndex, int iChange)
int getSpecialistCount (SpecialistType eIndex)
int (int /*SpecialistTypes*/ eIndex)
int alterSpecialistCount (SpecialistType eIndex, int iChange)
int (int /*SpecialistTypes*/ eIndex, int iChange)
int getMaxSpecialistCount (SpecialistType eIndex)
int (int /*SpecialistTypes*/ eIndex)
bool isSpecialistValid (SpecialistType eIndex, int iExtra)
bool (int /*SpecialistTypes*/ eIndex, int iExtra)
int getForceSpecialistCount (SpecialistType eIndex)
int (int /*SpecialistTypes*/ eIndex)
bool isSpecialistForced ()
bool ()
int setForceSpecialistCount (SpecialistType index, int iNewValue)
int (int /*SpecialistTypes*/ eIndex, int iNewValue
int changeForceSpecialistCount (SpecialistType index, int iChange)
int (int /*SpecialistTypes*/ eIndex, int iChange
int getFreeSpecialistCount (SpecialistType index)
int (int /*SpecialistTypes*/ eIndex
int setFreeSpecialistCount (SpecialistType index, int iNewValue)
int (int /*SpecialistTypes*/ eIndex, iNewValue
int changeFreeSpecialistCount (SpecialistType index, int iChange)
int (int /*SpecialistTypes*/ eIndex, iChange
int getImprovementFreeSpecialists (ImprovementType ImprovmentID) BtS Only
int (ImprovementID)
void changeImprovementFreeSpecialists (ImprovementType ImprovmentID, int iChange) BtS Only
void (ImprovementID, iChange) - adjust ImprovementID free specialists by iChange
int getReligionInfluence (ReligionID iIndex)
int (ReligionID) - value of influence from ReligionID
void changeReligionInfluence (ReligionTypes ReligionID, int iChange)
void (ReligionID, iChange) - adjust ReligionID influence by iChange
int getCurrentStateReligionHappiness ()
int ()
int getStateReligionHappiness (ReligionTypes ReligionID)
int (int /*ReligionTypes*/ ReligionID)
void changeStateReligionHappiness (ReligionTypes ReligionID, int iChange)
void (int /*ReligionTypes*/ ReligionID, iChange)
int getUnitCombatFreeExperience (UnitCombatType eIndex)
int (int /*UnitCombatTypes*/ eIndex)
int getFreePromotionCount (PromotionType eIndex)
int (int /*PromotionTypes*/ eIndex)
bool isFreePromotion (PromotionType eIndex)
bool (int /*PromotionTypes*/ eIndex)
int getSpecialistFreeExperience ()
int ()
int getEspionageDefenseModifier () BtS Only
int ()
bool isWorkingPlotByIndex (int iIndex)
bool (iIndex) - true if a worker is working this city's plot iIndex
bool isWorkingPlot (int iIndex)
bool (iIndex) - true if a worker is working this city's pPlot
void alterWorkingPlot (int iIndex)
void (iIndex)
int getNumRealBuilding (BuildingID eIndex) BtS Only
int (BuildingID) - get # real building of this type
void setNumRealBuilding (BuildingTypes BuildingID, int iNum) BtS Only
(BuildingID, iNum) - Sets number of buildings in this city of BuildingID type
int getNumFreeBuilding (BuildingID eIndex) BtS Only
int (BuildingID) - # of free Building ID (ie: from a Wonder)
bool isHasReligion (ReligionID eIndex)
bool (ReligionID) - does city have ReligionID?
void setHasReligion (ReligionID eIndex, bool bNewValue, bool bAnnounce, bool bArrow)
void (ReligionID, bool bNewValue, bool bAnnounce, bool bArrows) - religion begins to spread
bool isHasCorporation (CorporationID eIndex) BtS Only
bool (CorporationID) - does city have CorporationID?
void setHasCorporation (CorporationID eIndex, bool bNewValue, bool bAnnounce, bool bArrow) BtS Only
void (CorporationID, bool bNewValue, bool bAnnounce, bool bArrows) - corporation begins to spread
bool isActiveCorporation (CorporationID eIndex) BtS Only
bool (CorporationID) - does city have active CorporationID?
CyCity getTradeCity (int iIndex)
CyCity (int iIndex) - remove SpecialistType[iIndex]
int getTradeRoutes ()
int ()
void clearOrderQueue ()
void ()
void pushOrder (OrderTypes eOrder, int iData1, int iData2, bool bSave, bool bPop, bool bAppend, bool bForce)
void (OrderTypes eOrder, int iData1, int iData2, bool bSave, bool bPop, bool bAppend, bool bForce)
int popOrder (int iNum, bool bFinish, bool bChoose)
int (int iNum, bool bFinish, bool bChoose)
void getOrderQueueLength ()
void ()
OrderData getOrderFromQueue (int iIndex)
OrderData* (int iIndex)
void setWallOverridePoints (tuple kPoints)
setWallOverridePoints(const python::tuple& kPoints)
tuple getWallOverridePoints ()
python::tuple getWallOverridePoints()
bool AI_isEmphasize (int iEmphasizeType)
bool (int iEmphasizeType)
int AI_countBestBuilds (CyArea pArea)
int (CyArea* pArea)
int AI_cityValue () BtS Only
int ()
string getScriptData ()
str () - Get stored custom data (via pickle)
void setScriptData (string szNewValue)
void (str) - Set stored custom data (via pickle)
int visiblePopulation ()
int ()
int getBuildingYieldChange (BuildingClassType eBuildingClass, YieldType eYield) BtS Only
int (int /*BuildingClassTypes*/ eBuildingClass, int /*YieldTypes*/ eYield)
void setBuildingYieldChange (BuildingClassType eBuildingClass, YieldType eYield, int iChange) BtS Only
void (int /*BuildingClassTypes*/ eBuildingClass, int /*YieldTypes*/ eYield, int iChange)
int getBuildingCommerceChange (BuildingClassType eBuildingClass, CommerceType eCommerce) BtS Only
int (int /*BuildingClassTypes*/ eBuildingClass, int /*CommerceTypes*/ eCommerce)
void setBuildingCommerceChange (BuildingClassType eBuildingClass, CommerceType eCommerce, int iChange) BtS Only
void (int /*BuildingClassTypes*/ eBuildingClass, int /*CommerceTypes*/ eCommerce, int iChange)
int getBuildingHappyChange (BuildingClassType eBuildingClas) BtS Only
int (int /*BuildingClassTypes*/ eBuildingClass)
void setBuildingHappyChange (BuildingClassType eBuildingClass, int iChange) BtS Only
void (int /*BuildingClassTypes*/ eBuildingClass, int iChange)
int getBuildingHealthChange (BuildingClassType eBuildingClas) BtS Only
int (int /*BuildingClassTypes*/ eBuildingClass)
void setBuildingHealthChange (BuildingClassType eBuildingClass, int iChange) BtS Only
void (int /*BuildingClassTypes*/ eBuildingClass, int iChange)
int getLiberationPlayer () BtS Only
int ()
void liberate () BtS Only
void ()