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