void isNone ()
checks for a null player
int startingPlotRange ()
int ()
bool startingPlotWithinRange (
CyPlot pPlot,
PlayerType ePlayer,
int iRange,
int iPass)
bool (CyPlot *pPlot, int /*PlayerTypes*/ ePlayer, int iRange, int iPass)
findStartingPlot (
bool bRandomize)
findStartingPlot(bool bRandomize) - Finds a starting plot for player
CyCity initCity (
int plotX,
int plotY)
initCity( plotX, plotY ) - spawns a city at x,y
void acquireCity (
CyCity pCity,
bool bConquest,
bool bTrade)
void (CyCity* pCity, bool bConquest, bool bTrade)
void killCities ()
void ()
string getNewCityName ()
wstring ()
CyUnit initUnit (
UnitType iIndex,
int plotX,
int plotY,
UnitAIType iIndex,
DirectionType iIndex)
CyUnit* initUnit(UnitTypes iIndex, plotX, plotY, UnitAITypes iIndex) - place Unit at X,Y NOTE: Always use UnitAITypes.NO_UNITAI
void disbandUnit (
bool bAnnounce)
void (bool bAnnounce)
void killUnits ()
void ()
bool hasTrait (
TraitType iIndex)
bool hasTrait(int /*TraitTypes*/ iIndex) - returns True if player is the Trait Type.
bool isHuman ()
bool ()
bool isBarbarian ()
bool () - returns True if player is a Barbarian
string getName ()
str ()
string getNameForm ()
str ()
string getNameKey ()
str ()
string getCivilizationDescription ()
str() - returns the Civilization Description String
string getCivilizationShortDescription ()
str() - returns the short Civilization Description
string getCivilizationDescriptionKey ()
str() - returns the Civilization Description String
string getCivilizationShortDescriptionKey ()
str() - returns the short Civilization Description
string getCivilizationAdjective ()
str() - returns the Civilization name in adjective form
string getCivilizationAdjectiveKey ()
str() - returns the Civilization name in adjective form
string getFlagDecal ()
str() - returns the Civilization flag decal
bool isWhiteFlag ()
bool () - Whether or not this player is using a custom texture flag (set in WBS)
string getStateReligionName ()
str() - returns the name of the Civilizations State Religion
string getBestAttackUnitName ()
str () - returns the name of the best attack unit
string getWorstEnemyName ()
str () - returns the name of the worst enemy
string getStateReligionKey ()
str() - returns the name of the Civilizations State Religion
string getBestAttackUnitKey ()
str () - returns the name of the best attack unit
int getArtStyleType ()
int () - Returns the ArtStyleType for this player (e.g. European)
int findBestFoundValue ()
int () - Finds best found value
int countNumCoastalCities ()
int ()
int countNumCoastalCitiesByArea (
CyArea pArea)
(int (CyArea* pArea)
int countTotalCulture ()
int ()
int countOwnedBonuses (
BonusType eBonus)
int (int (BonusTypes) eBonus) -
int countUnimprovedBonuses (
CyArea pArea,
CyPlot pFromPlot)
int (int (CyArea* pArea, CyPlot* pFromPlot) -
int countCityFeatures (
FeatureType eFeature)
int (int /*FeatureTypes*/ eFeature) - Returns ?
int countNumBuildings (
BuildingType eBuilding)
int (int /*BuildingTypes*/ eBuilding) - Returns the number of buildings?
int countPotentialForeignTradeCities (
CyArea pIgnoreArea)
int (CyArea* pIgnoreArea) - Returns the number of potential foreign trade cities
int countPotentialForeignTradeCitiesConnected ()
int () - Returns the number of potential foreign trade cities which are also connected to this player's capital
bool canContact (
int ePlayer)
bool (int ePlayer)
void contact (
int ePlayer)
void (int ePlayer)
bool canTradeWith (
int ePlayer)
bool (int ePlayer)
bool canTradeItem (
int ePlayer,
bool bTestDenial)
bool (int ePlayer, bool bTestDenial)
DenialType getTradeDenial (
int eWhoTo,
TradeData item)
DenialTypes (int eWhoTo, TradeData item)
bool canTradeNetworkWith (
PlayerType iPlayer)
bool (int (PlayerTypes) iPlayer)
int getNumAvailableBonuses (
BonusType eBonus)
int (int (BonusTypes) eBonus)
int getNumTradeableBonuses (
BonusType eBonus)
int (int (BonusTypes) eBonus)
int getNumTradeBonusImports (
PlayerType ePlayer)
int (int /*PlayerTypes*/ ePlayer)
int hasBonus (
BonusType iIndex,
PlayerType ePlayer)
int (int /*BonusType*/ ePlayer)
int canStopTradingWithTeam (
TeamType eTeam)
int (int /*TeamTypes*/ eTeam)
int stopTradingWithTeam (
TeamType eTeam)
int (int /*TeamTypes*/ eTeam)
void killAllDeals ()
void ()
void findNewCapital ()
void ()
int getNumGovernmentCenters ()
int ()
bool canRaze (
CyCity pCity)
bool (CyCity pCity)
void raze (
CyCity pCity)
void (CyCity pCity)
void disband (
CyCity pCity)
void (CyCity pCity)
bool canReceiveGoody (
CyPlot pPlot,
GoodyType eGoody,
CyUnit pUnit)
bool (CyPlot* pPlot, int /*GoodyTypes*/ eGoody, CyUnit* pUnit)
void receiveGoody (
CyPlot pPlot,
GoodyType eGoody,
CyUnit pUnit)
void (CyPlot* pPlot, int /*GoodyTypes*/ eGoody, CyUnit* pUnit)
void doGoody (
CyPlot pPlot,
CyUnit pUnit)
void (CyPlot* pPlot, CyUnit* pUnit)
bool canFound (
int iX,
int iY)
bool (int iX, int iY)
void found (
int iX,
int iY)
void (int iX, int iY)
bool canTrain (
int eUnit,
bool bContinue,
bool bTestVisible)
bool (int eUnit, bool bContinue, bool bTestVisible)
bool canConstruct (
BuildingTypes eBuilding,
bool bContinue,
bool bTestVisible,
bool bIgnoreCost)
bool (int /*BuildingTypes*/eBuilding, bool bContinue, bool bTestVisible, bool bIgnoreCost)
bool canCreate (
ProjectTypes eProject,
bool bContinue,
bool bTestVisible)
bool (int /*ProjectTypes*/ eProject, bool bContinue, bool bTestVisible)
bool canMaintain (
ProcessTypes eProcess,
bool bContinue)
bool (int /*ProcessTypes*/ eProcess, bool bContinue)
int isProductionMaxedUnitClass (
UnitClassTypes eUnitClass)
int (int /*UnitClassTypes*/ eUnitClass)
int isProductionMaxedBuildingClass (
BuildingClassType eBuildingClass,
bool bAcquireCity)
int (int /*BuildingClassTypes*/ eBuildingClass, bool bAcquireCity)
int isProductionMaxedProject (
ProjectTypes eProject)
int (int /*ProjectTypes*/ eProject)
int getUnitProductionNeeded (
UnitTypes iIndex)
int (int /*UnitTypes*/ iIndex)
int getBuildingProductionNeeded (
BuildingTypes iIndex)
int (int /*BuildingTypes*/ iIndex)
bool getProjectProductionNeeded (
ProjectTypes eProject,
bool bContinue,
bool bTestVisible)
bool (int /*ProjectTypes*/ eProject, bool bContinue, bool bTestVisible)
int getBuildingClassPrereqBuilding (
BuildingTypes eBuilding,
BuildingClassTypes ePrereqBuildingClass,
int iExtra)
int (int /*BuildingTypes*/ eBuilding, int /*BuildingClassTypes*/ ePrereqBuildingClass, iExtra) -
void removeBuildingClass (
BuildingClassTypes eBuildingClass)
void (int /*BuildingClassTypes*/ eBuildingClass)
bool canBuild (
CyPlot pPlot,
BuildTypes eBuild,
bool bTestEra,
bool bTestVisible)
bool (CyPlot* pPlot, int (BuildTypes) eBuild, bool bTestEra, bool bTestVisible)
int calculateTotalYield (
YieldTypes eYield)
int (int /*YieldTypes*/ eYield) - Returns the total sum of all city yield
int calculateTotalExports (
YieldTypes eYield)
int (int /*YieldTypes*/ eYield) - Returns the total sum of all city gold generated for other civs via trade routes
int calculateTotalImports (
YieldTypes eYield)
int (int /*YieldTypes*/ eYield) - Returns the total sum of all city gold generated for this civ via trade routes with others
int calculateTotalCityHappiness ()
int () - Returns the total sum of all city Happiness values
int calculateTotalCityUnhappiness ()
int () - Returns the total sum of all city Unhappiness values
int calculateTotalCityHealthiness ()
int () - Returns the total sum of all city Healthiness values
int calculateTotalCityUnhealthiness ()
int () - Returns the total sum of all city Unhealthiness values
int calculateUnitCost ()
int ()
int calculateUnitSupply ()
int ()
int calculatePreInflatedCosts ()
int ()
int calculateInflationRate ()
int ()
int calculateInflatedCosts ()
int ()
int calculateGoldRate ()
int ()
int calculateTotalCommerce ()
int ()
int calculateResearchRate (
TechTypes eTech)
int (int /*TechTypes*/ eTech)
int calculateBaseNetResearch ()
int ()
int calculateResearchModifier (
TechTypes eTech)
int (int /*TechTypes*/ eTech)
bool isResearch ()
bool ()
bool canEverResearch (
TechTypes iIndex)
bool (int /*TechTypes*/ iIndex)
bool canResearch (
TechTypes iIndex,
bool bTrade)
bool (int /*TechTypes*/ iIndex, bool bTrade)
int getCurrentResearch ()
int ()
bool isCurrentResearchRepeat ()
bool ()
bool isNoResearchAvailable ()
bool ()
int getResearchTurnsLeft (
TechTypes eTech,
bool bOverflow)
int (int /*TechTypes*/ eTech, bool bOverflow)
bool isCivic (
CivicTypes eCivic)
bool (int (CivicTypes) eCivic)
bool canDoCivics (
CivicTypes eCivic)
bool (int (CivicTypes) eCivic)
bool canRevolution (
CivicTypes paeNewCivics)
bool (int (CivicTypes*) paeNewCivics)
void revolution (
CivicTypes paeNewCivics,
bool bForce )
void (int (CivicTypes*) paeNewCivics, bool bForce)
int getCivicPercentAnger (
CivicTypes eCivic)
int (int /*CivicTypes*/ eCivic)
int canDoReligion (
ReligionTypes eReligion)
int (int /*ReligionTypes*/ eReligion)
bool canChangeReligion ()
bool ()
bool canConvert (
ReligionTypes iIndex)
bool (int /*ReligionTypes*/ iIndex)
void convert (
ReligionTypes iIndex)
void (int /*ReligionTypes*/ iIndex)
bool hasHolyCity (
ReligionTypes eReligion)
bool (int (ReligionTypes) eReligion)
int countHolyCities ()
int () - Counts the # of holy cities this player has
void foundReligion (
ReligionTypes eReligion,
ReligionTypes iSlotReligion,
bool bNewValue)
void (int /*ReligionTypes*/ eReligion, int /*ReligionTypes*/ iSlotReligion, bool)
bool hasHeadquarters (
CorporationTypes eCorporation)
bool (int (CorporationTypes) eCorporation)
int countHeadquarters ()
int () - Counts the # of headquarters this player has
int countCorporations ()
int (CorporationTypes) - Counts the # of corporations this player has
void foundCorporation (
CorporationTypes eCorporation)
void (int /*CorporationTypes*/ eCorporation)
int getCivicAnarchyLength (
CivicTypes paeNewCivics)
int (int (CivicTypes*) paeNewCivics)
int getReligionAnarchyLength ()
int ()
int unitsRequiredForGoldenAge ()
int ()
int unitsGoldenAgeCapable ()
int ()
int unitsGoldenAgeReady ()
int ()
int greatPeopleThreshold ()
int ()
int specialistYield (
SpecialistTypes eSpecialist,
YieldTypes eCommerce)
int (int (SpecialistTypes) eSpecialist, int (YieldTypes) eCommerce)
int specialistCommerce (
SpecialistTypes eSpecialist,
CommerceTypes eCommerce)
int (int (SpecialistTypes) eSpecialist, int (CommerceTypes) eCommerce)
CyPlot getStartingPlot ()
CyPlot* ()
void setStartingPlot (
CyPlot pPlot,
bool bNewValue)
void (CyPlot*, bool) - sets the player's starting plot
int getTotalPopulation ()
int ()
int getAveragePopulation ()
int ()
long getRealPopulation ()
long int ()
int getTotalLand ()
int ()
int getTotalLandScored ()
int ()
int getGold ()
int ()
void setGold (
int iNewValue)
void (int iNewValue)
void changeGold (
int iChange)
void (int iChange)
int getGoldPerTurn ()
int ()
int getAdvancedStartPoints ()
int ()
void setAdvancedStartPoints (
int iNewValue)
void (int iNewValue)
void changeAdvancedStartPoints (
int iChange)
void (int iChange)
int getAdvancedStartUnitCost (
UnitTypes eUnit,
bool bAdd,
CyPlot pPlot)
int (int (UnitTypes) eUnit, bool bAdd, CyPlot* pPlot)
int getAdvancedStartCityCost (
bool bAdd,
CyPlot pPlot)
int (int (bool bAdd, CyPlot* pPlot)
int getAdvancedStartPopCost (
bool bAdd,
CyPlot pPlot)
int (int (bool bAdd, CyCity* pCity)
int getAdvancedStartCultureCost (
bool bAdd,
CyPlot pPlot)
int (int (bool bAdd, CyCity* pCity)
int getAdvancedStartBuildingCost (
BuildingTypes eBuilding,
bool bAdd,
CyPlot pPlot)
int (int (BuildingTypes) eUnit, bool bAdd, CyCity* pCity)
int getAdvancedStartImprovementCost (
ImprovementTypes eImprovement,
bool bAdd,
CyPlot pPlot)
int (int (ImprovementTypes) eImprovement, bool bAdd, CyPlot* pPlot)
int getAdvancedStartRouteCost (
RouteTypes eRoute,
bool bAdd,
CyPlot pPlot)
int (int (RouteTypes) eUnit, bool bAdd, CyPlot* pPlot)
int getAdvancedStartTechCost (
TechTypes eTech,
bool bAdd)
int (int (TechTypes) eUnit, bool bAdd)
int getAdvancedStartVisibilityCost (
bool bAdd,
CyPlot pPlot)
int (bool bAdd, CyPlot* pPlot)
int getEspionageSpending (
PlayerTypes eIndex)
int (PlayerTypes eIndex)
bool canDoEspionageMission (
EspionageMissionTypes eMission,
PlayerTypes eTargetPlayer,
CyPlot pPlot,
int iExtraData)
bool (EspionageMissionTypes eMission, PlayerTypes eTargetPlayer, CyPlot* pPlot, int iExtraData)
int getEspionageMissionCost (
EspionageMissionTypes eMission,
PlayerTypes eTargetPlayer,
CyPlot pPlot,
int iExtraData)
int (EspionageMissionTypes eMission, PlayerTypes eTargetPlayer, CyPlot* pPlot, int iExtraData)
void doEspionageMission (
EspionageMissionTypes eMission,
PlayerTypes eTargetPlayer,
CyPlot pPlot,
int iExtraData,
CyUnit pUnit )
void (EspionageMissionTypes eMission, PlayerTypes eTargetPlayer, CyPlot* pPlot, int iExtraData, CyUnit* pUnit)
int getEspionageSpendingWeightAgainstTeam (
TeamTypes eIndex)
int (TeamTypes eIndex)
void setEspionageSpendingWeightAgainstTeam (
TeamTypes eIndex,
int iValue)
void (TeamTypes eIndex, int iValue)
void changeEspionageSpendingWeightAgainstTeam (
TeamTypes eIndex,
int iChange)
void (TeamTypes eIndex, int iChange)
int getGoldenAgeTurns ()
int ()
int getGoldenAgeLength ()
int ()
bool isGoldenAge ()
bool ()
void changeGoldenAgeTurns (
int iChange)
void (int iChange)
int getNumUnitGoldenAges ()
int ()
void changeNumUnitGoldenAges (
int iChange)
void (int iChange)
int getAnarchyTurns ()
int ()
bool isAnarchy ()
bool ()
void changeAnarchyTurns ()
void ()
int getStrikeTurns ()
int ()
int getMaxAnarchyTurns ()
int ()
int getAnarchyModifier ()
int ()
int getGoldenAgeModifier ()
int ()
int getHurryModifier ()
int ()
void createGreatPeople (
UnitTypes eGreatPersonUnit,
bool bIncrementThreshold,
int iX,
int iY)
void (int /*UnitTypes*/ eGreatPersonUnit, bool bIncrementThreshold, int iX, int iY)
int getGreatPeopleCreated ()
int ()
int getGreatGeneralsCreated ()
int ()
int getGreatPeopleThresholdModifier ()
int ()
int getGreatGeneralsThresholdModifier ()
int ()
int getGreatPeopleRateModifier ()
int ()
int getGreatGeneralRateModifier ()
int ()
int getDomesticGreatGeneralRateModifier ()
int ()
int getStateReligionGreatPeopleRateModifier ()
int ()
int getMaxGlobalBuildingProductionModifier ()
int ()
int getMaxTeamBuildingProductionModifier ()
int ()
int getMaxPlayerBuildingProductionModifier ()
int ()
int getFreeExperience ()
int ()
int getFeatureProductionModifier ()
int ()
int getWorkerSpeedModifier ()
int ()
int getImprovementUpgradeRateModifier ()
int ()
int getMilitaryProductionModifier ()
int ()
int getSpaceProductionModifier ()
int ()
int getCityDefenseModifier ()
int ()
int getNumNukeUnits ()
int ()
int getNumOutsideUnits ()
int ()
int getBaseFreeUnits ()
int ()
int getBaseFreeMilitaryUnits ()
int ()
int getFreeUnitsPopulationPercent ()
int ()
int getFreeMilitaryUnitsPopulationPercent ()
int ()
int getGoldPerUnit ()
int ()
int getGoldPerMilitaryUnit ()
int ()
int getExtraUnitCost ()
int ()
int getNumMilitaryUnits ()
int ()
int getHappyPerMilitaryUnit ()
int ()
bool isMilitaryFoodProduction ()
bool ()
int getHighestUnitLevel ()
int ()
int getConscriptCount ()
int ()
void setConscriptCount (
int iNewValue)
void (int iNewValue)
void changeConscriptCount (
int iChange)
void (int iChange)
int getMaxConscript ()
int ()
int getOverflowResearch ()
int ()
bool isNoUnhealthyPopulation ()
bool ()
bool getExpInBorderModifier ()
bool ()
bool isBuildingOnlyHealthy ()
bool ()
int getDistanceMaintenanceModifier ()
int ()
int getNumCitiesMaintenanceModifier ()
int ()
int getCorporationMaintenanceModifier ()
int ()
int getTotalMaintenance ()
int ()
int getUpkeepModifier ()
int ()
int getLevelExperienceModifier ()
int ()
int getExtraHealth ()
int ()
int getBuildingGoodHealth ()
int ()
int getBuildingBadHealth ()
int ()
int getExtraHappiness ()
int ()
void changeExtraHappiness (
int iChange)
void (int iChange)
int getBuildingHappiness ()
int ()
int getLargestCityHappiness ()
int ()
int getWarWearinessPercentAnger ()
int ()
int getWarWearinessModifier ()
int ()
int getFreeSpecialist ()
int ()
bool isNoForeignTrade ()
bool ()
bool isNoCorporations ()
bool ()
bool isNoForeignCorporations ()
bool ()
int getCoastalTradeRoutes ()
int ()
void changeCoastalTradeRoutes (
int iChange)
void (int iChange)
int getTradeRoutes ()
int ()
int getConversionTimer ()
int ()
int getRevolutionTimer ()
int ()
bool isStateReligion ()
bool ()
bool isNoNonStateReligionSpread ()
bool ()
int getStateReligionHappiness ()
int ()
int getNonStateReligionHappiness ()
int ()
int getStateReligionUnitProductionModifier ()
int ()
void changeStateReligionUnitProductionModifier (
int iChange)
void (int iChange)
int getStateReligionBuildingProductionModifier ()
int ()
void changeStateReligionBuildingProductionModifier (
int iChange)
void (int iChange)
int getStateReligionFreeExperience ()
int ()
CyCity getCapitalCity (
int iID)
CyCity* (int iID)
int getCitiesLost ()
int ()
int getWinsVsBarbs ()
int ()
int getAssets ()
int ()
void changeAssets (
int iChange)
void (int iChange)
int getPower ()
int ()
int getPopScore ()
int ()
int getLandScore ()
int ()
int getWondersScore ()
int ()
int getTechScore ()
int ()
int getTotalTimePlayed ()
int ()
bool isMinorCiv ()
bool ()
bool isAlive ()
bool ()
bool isEverAlive ()
bool ()
bool isExtendedGame ()
bool ()
bool isFoundedFirstCity ()
bool ()
bool isStrike ()
bool ()
int getID ()
int ()
int getHandicapType ()
int ()
int getCivilizationType ()
int ()
int getLeaderType ()
int ()
int getPersonalityType ()
int ()
void setPersonalityType (
LeaderHeadTypes eNewValue)
void (int /*LeaderHeadTypes*/ eNewValue)
int getCurrentEra ()
int ()
void setCurrentEra (
EraTypes iNewValue)
void (int /*EraTypes*/ iNewValue)
int getStateReligion ()
int ()
void setLastStateReligion (
int iReligionID)
void (int iReligionID) - Sets the player's state religion to iReligionID
int getTeam ()
int ()
bool isTurnActive ()
bool ()
int getPlayerColor ()
int (PlayerColorTypes) () - returns the color ID of the player
int getPlayerTextColorR ()
int ()
int getPlayerTextColorG ()
int ()
int getPlayerTextColorB ()
int ()
int getPlayerTextColorA ()
int ()
int getSeaPlotYield (
YieldTypes eIndex)
int (YieldTypes eIndex)
int getYieldRateModifier (
YieldTypes eIndex)
int (YieldTypes eIndex)
int getCapitalYieldRateModifier (
YieldTypes eIndex)
int (YieldTypes eIndex)
int getExtraYieldThreshold (
YieldTypes eIndex)
int (YieldTypes eIndex)
int getTradeYieldModifier (
YieldTypes eIndex)
int (YieldTypes eIndex)
int getFreeCityCommerce (
CommerceTypes eIndex)
int (CommerceTypes eIndex)
int getCommercePercent (
CommerceTypes eIndex)
int (CommerceTypes eIndex)
int setCommercePercent (
CommerceTypes eIndex,
int iNewValue)
int (CommerceTypes eIndex, int iNewValue)
int changeCommercePercent (
CommerceTypes eIndex,
int iChange)
int (CommerceTypes eIndex, int iChange)
int getCommerceRate (
CommerceTypes eIndex)
int (CommerceTypes eIndex)
int getCommerceRateModifier (
CommerceTypes eIndex)
int (CommerceTypes eIndex)
int getCapitalCommerceRateModifier (
CommerceTypes eIndex)
int (CommerceTypes eIndex)
int getStateReligionBuildingCommerce (
CommerceTypes eIndex)
int (CommerceTypes eIndex)
int getSpecialistExtraCommerce (
CommerceTypes eIndex)
int (CommerceTypes eIndex)
bool isCommerceFlexible (
CommerceTypes eIndex)
bool (CommerceTypes eIndex)
int getGoldPerTurnByPlayer (
PlayerTypes eIndex)
int (PlayerTypes eIndex)
bool isFeatAccomplished (
FeatTypes eIndex)
bool ()
void setFeatAccomplished (
FeatTypes eIndex,
bool bNewValue)
void ()
bool isOption (
PlayerOptionTypes eIndex)
bool ()
void setOption (
PlayerOptionTypes eIndex,
bool bNewValue)
void ()
bool isLoyalMember (
VoteSourceTypes eIndex)
bool ()
void setLoyalMember (
VoteSourceTypes eIndex,
bool bNewValue)
void ()
int getVotes (
VoteTypes eVote,
VoteSourceTypes eVoteSource)
int (int /*VoteTypes*/ eVote, int /*VoteSourceTypes*/ eVoteSource)
bool isFullMember (
VoteSourceTypes eVoteSource)
bool ()
bool isVotingMember (
VoteSourceTypes eVoteSource)
bool ()
bool isPlayable ()
bool ()
void setPlayable (
bool bNewValue)
void ()
int getBonusExport (
CommerceTypes eIndex)
int (CommerceTypes eIndex)
int getBonusImport (
CommerceTypes eIndex)
int (CommerceTypes eIndex)
int getImprovementCount (
ImprovementTypes eIndex)
int (int /*ImprovementTypes*/ iIndex)
bool isBuildingFree (
BuildingTypes eIndex)
bool (int /*BuildingTypes*/ eIndex)
int getExtraBuildingHappiness (
BuildingTypes eIndex)
int (int /*BuildingTypes*/ eIndex)
int getExtraBuildingHealth (
BuildingTypes eIndex)
int (int /*BuildingTypes*/ eIndex)
int getFeatureHappiness (
FeatureTypes eIndex)
int (int /*FeatureTypes*/ eIndex)
int getUnitClassCount (
UnitClassTypes eIndex)
int (int (UnitClassTypes) eIndex)
bool isUnitClassMaxedOut (
UnitClassTypes eIndex,
int iExtra)
bool (int (UnitClassTypes) eIndex, int iExtra)
int getUnitClassMaking (
UnitClassTypes eIndex)
int (int (UnitClassTypes) eIndex)
int getUnitClassCountPlusMaking (
UnitClassTypes eIndex)
int (int (UnitClassTypes) eIndex)
int getBuildingClassCount (
BuildingClassTypes eIndex)
int (int /*BuildingClassTypes*/ eIndex)
bool isBuildingClassMaxedOut (
BuildingClassTypes iIndex,
int iExtra)
bool (int /*BuildingClassTypes*/ iIndex, int iExtra)
int getBuildingClassMaking (
BuildingClassTypes iIndex)
int (int /*BuildingClassTypes*/ iIndex)
int getBuildingClassCountPlusMaking (
BuildingClassTypes iIndex)
int (int /*BuildingClassTypes*/ iIndex)
int getHurryCount (
HurryTypes eIndex)
int (int (HurryTypes) eIndex)
int canHurry (
HurryTypes eIndex)
int (int (HurryTypes) eIndex)
int getSpecialBuildingNotRequiredCount (
SpecialBuildingTypes eIndex)
int (int (SpecialBuildingTypes) eIndex)
int isSpecialBuildingNotRequired (
SpecialBuildingTypes eIndex)
int (int (SpecialBuildingTypes) eIndex)
bool isHasCivicOption (
CivicOptionTypes eIndex)
bool (int (CivicOptionTypes) eIndex)
bool isNoCivicUpkeep (
CivicOptionTypes iIndex)
bool (int /*CivicOptionTypes*/ iIndex)
int getHasReligionCount (
ReligionTypes eIndex)
int () -
int getHasCorporationCount (
CorporationTypes eIndex)
int () -
int findHighestHasReligionCount ()
int () -
int getUpkeepCount (
UpkeepTypes eIndex)
int (int (UpkeepTypes) eIndex)
bool isSpecialistValid (
SpecialistTypes iIndex)
bool (int /*SpecialistTypes*/ iIndex)
bool isResearchingTech (
TechTypes iIndex)
bool (int /*TechTypes*/ iIndex)
CivicTypes getCivics (
CivicOptionTypes iIndex)
int /*CivicTypes*/ (int /*CivicOptionTypes*/ iIndex)
int getSingleCivicUpkeep (
CivicTypes eCivic,
bool bIgnoreAnarchy )
int (int /*CivicTypes*/ eCivic, bool bIgnoreAnarchy)
int getCivicUpkeep (
CivicTypes paiCivic,
bool bIgnoreAnarchy )
int (int* /*CivicTypes*/ paiCivics, bool bIgnoreAnarchy)
void setCivics (
int iCivicOptionType,
int iCivicType)
void (int iCivicOptionType, int iCivicType) - Used to forcibly set civics with no anarchy
int getCombatExperience ()
int () - Combat experience used to produce Warlords
void changeCombatExperience (
int iChange)
void (int) - Combat experience used to produce Warlords
void setCombatExperience (
int iExperience)
void (int) - Combat experience used to produce Warlords
int getSpecialistExtraYield (
SpecialistTypes eIndex1,
YieldTypes eIndex2)
int (int /*SpecialistTypes*/ eIndex1, int /*YieldTypes*/ eIndex2)
int findPathLength (
TechTypes eTech,
bool bCost)
int (int (TechTypes) eTech, bool bCost)
int getQueuePosition (
TechTypes eTech)
int
void clearResearchQueue ()
void ()
void pushResearch (
TechTypes eTech,
bool bClear )
void (int /*TechTypes*/ iIndex, bool bClear)
void popResearch (
TechTypes eTech)
void (int /*TechTypes*/ eTech)
int getLengthResearchQueue ()
int ()
void addCityName (
string szName)
void (std::wstring szName)
int getNumCityNames ()
int ()
string getCityName (
int iIndex)
std::wstring (int iIndex)
tuple firstCity (
bool bRev)
tuple(CyCity, int iterOut) (bool bReverse) - gets the first city
tuple nextCity (
int iterIn,
bool bRev)
tuple(CyCity, int iterOut) (int iterIn, bool bReverse) - gets the next city
int getNumCities ()
int ()
CyCity getCity (
int iID)
CyCity* (int iID)
tuple firstUnit (
bool bRev)
tuple(CyUnit, int iterOut) (bool bReverse) - gets the first unit
tuple nextUnit (
int iterIn,
bool bRev)
tuple(CyUnit, int iterOut) (int iterIn, bool bReverse) - gets the next unit
int getNumUnits ()
int ()
CyUnit getUnit (
int iID)
CyUnit* (int iID)
tuple firstSelectionGroup (
bool bRev)
tuple(CySelectionGroup, int iterOut) (bool bReverse) - gets the first selectionGroup
tuple nextSelectionGroup (
int iterIn,
bool bRev)
tuple(CySelectionGroup, int iterOut) (int iterIn, bool bReverse) - gets the next selectionGroup
int getNumSelectionGroups ()
int ()
CySelectionGroup getSelectionGroup (
int iID)
CvSelectionGroup* (int iID)
void trigger (
EventTriggerTypes eEventTrigger)
void (/*EventTriggerTypes*/int eEventTrigger)
EventTriggeredData getEventOccured (
EventTypes eEvent)
EventTriggeredData* (int /*EventTypes*/ eEvent)
void resetEventOccured (
EventTypes eEvent)
void (int /*EventTypes*/ eEvent)
EventTriggeredData getEventTriggered (
int iID)
EventTriggeredData* (int iID)
EventTriggeredData initTriggeredData (
int eEventTrigger,
bool bFire,
int iCityId,
int iPlotX,
int iPlotY,
PlayerTypes eOtherPlayer,
int iOtherPlayerCityId,
ReligionTypes eReligion,
CorporationTypes eCorporation,
int iUnitId,
BuildingTypes eBuilding)
EventTriggeredData* (int eEventTrigger, bool bFire, int iCityId, int iPlotX, int iPlotY, PlayerTypes eOtherPlayer, int iOtherPlayerCityId, ReligionTypes eReligion, CorporationTypes eCorporation, int iUnitId, BuildingTypes eBuilding)
int getEventTriggerWeight (
int eEventTrigger)
int getEventTriggerWeight(int eEventTrigger)
void AI_updateFoundValues (
bool bStartingLoc)
BtS Only
void (bool bStartingLoc)
int AI_foundValue (
int iX,
int iY,
int iMinRivalRange,
bool bStartingLoc)
BtS Only
int (int, int, int, bool)
bool AI_isFinancialTrouble ()
BtS Only
bool ()
bool AI_demandRebukedWar (
PlayerType ePlayer)
BtS Only
bool (int /*PlayerTypes*/)
AttitudeTypes AI_getAttitude (
PlayerType ePlayer)
BtS Only
AttitudeTypes (int /*PlayerTypes*/) - Gets the attitude of the player towards the player passed in
int AI_unitValue (
UnitType eUnit,
UnitAIType eUnitAI,
CyArea pArea)
BtS Only
int (int /*UnitTypes*/ eUnit, int /*UnitAITypes*/ eUnitAI, CyArea* pArea)
int AI_civicValue (
CivicType eCivic)
BtS Only
int (int /*CivicTypes*/ eCivic)
int AI_totalUnitAIs (
UnitAIType eUnitAI)
BtS Only
int (int /*UnitAITypes*/ eUnitAI)
int AI_totalAreaUnitAIs (
CyArea pArea,
UnitAIType eUnitAI)
BtS Only
int (CyArea* pArea, int /*UnitAITypes*/ eUnitAI)
int AI_totalWaterAreaUnitAIs (
CyArea pArea,
UnitAIType eUnitAI)
BtS Only
int (CyArea* pArea, int /*UnitAITypes*/ eUnitAI)
int AI_getNumAIUnits (
UnitAIType eIndex)
BtS Only
int (UnitAIType) - Returns # of UnitAITypes the player current has of UnitAIType
int AI_getAttitudeExtra (
PlayerType eIndex)
BtS Only
int (int /*PlayerTypes*/ eIndex) - Returns the extra attitude for this player - usually scenario specific
void AI_setAttitudeExtra (
PlayerType eIndex,
int iNewValue)
BtS Only
void (int /*PlayerTypes*/ eIndex, int iNewValue) - Sets the extra attitude for this player - usually scenario specific
void AI_changeAttitudeExtra (
PlayerType eIndex,
int iChange)
BtS Only
void (int /*PlayerTypes*/ eIndex, int iChange) - Changes the extra attitude for this player - usually scenario specific
int AI_getMemoryCount (
PlayerType eIndex1,
MemoryType eIndex2)
BtS Only
int (/*PlayerTypes*/ eIndex1, /*MemoryTypes*/ eIndex2)
void AI_changeMemoryCount (
PlayerType eIndex1,
MemoryType eIndex2,
int iChange)
BtS Only
void (/*PlayerTypes*/ eIndex1, /*MemoryTypes*/ eIndex2, int iChange)
int AI_getExtraGoldTarget ()
BtS Only
int ()
void AI_setExtraGoldTarget (
int iNewVal)
BtS Only
void (int)
int getScoreHistory (
int iTurn)
BtS Only
int (int iTurn)
int getEconomyHistory (
int iTurn)
BtS Only
int (int iTurn)
int getIndustryHistory (
int iTurn)
BtS Only
int (int iTurn)
int getAgricultureHistory (
int iTurn)
BtS Only
int (int iTurn)
int getPowerHistory (
int iTurn)
BtS Only
int (int iTurn)
int getCultureHistory (
int iTurn)
BtS Only
int (int iTurn)
int getEspionageHistory (
int iTurn)
BtS Only
int (int iTurn)
string getScriptData ()
BtS Only
str () - Get stored custom data (via pickle)
void setScriptData (
string szNewVal)
BtS Only
void (str) - Set stored custom data (via pickle)
void chooseTech (
int iDiscover,
string szText,
bool bFront)
BtS Only
void (int iDiscover, wstring szText, bool bFront)
int AI_maxGoldTrade (
int ePlayer)
BtS Only
int (int)
int AI_maxGoldPerTurnTrade (
int ePlayer)
BtS Only
int (int)
bool splitEmpire (
int iAreaId)
BtS Only
bool (int iAreaId)
bool canSplitEmpire ()
BtS Only
bool ()
bool canHaveTradeRoutesWith (
int ePlayer)
BtS Only
bool (int)
void forcePeace (
int ePlayer)
BtS Only
void (int)