Bazaar developer reference

CvLuaPlayer::PushMethods(lua_State *, int)

Defined in
Lua/CvLuaPlayer.cpp, line 50
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_PushMethods

Hooks

static bool BeforeCvLuaPlayer_PushMethods(lua_State* L, int t);static void AfterCvLuaPlayer_PushMethods(lua_State* L, int t);static void ReplaceCvLuaPlayer_PushMethods(void (*original)(lua_State*, int), lua_State* L, int t);CivRegisterBefore<CivHooks::CvLuaPlayer_PushMethods>(host, &BeforeCvLuaPlayer_PushMethods);CivRegisterAfter<CivHooks::CvLuaPlayer_PushMethods>(host, &AfterCvLuaPlayer_PushMethods);CivRegisterReplace<CivHooks::CvLuaPlayer_PushMethods>(host, &ReplaceCvLuaPlayer_PushMethods);

Code

50void CvLuaPlayer::PushMethods(lua_State* L, int t)51{52	Method(InitCity);53	Method(AcquireCity);54	Method(KillCities);5556	Method(GetNewCityName);57#if defined(MOD_API_LUA_EXTENSIONS)58	Method(IsCityNameValid);59#endif6061	Method(InitUnit);62	Method(InitUnitWithNameOffset);63	Method(DisbandUnit);64	Method(AddFreeUnit);6566	Method(ChooseTech);6768#if defined(MOD_API_LUA_EXTENSIONS)69	Method(GetSpecificUnitType);70	Method(GetSpecificBuildingType);71#endif7273	Method(KillUnits);74	Method(IsHuman);75	Method(IsBarbarian);76	Method(GetName);77	Method(GetNameKey);78	Method(GetNickName);79	Method(GetCivilizationDescription);80	Method(GetCivilizationDescriptionKey);81	Method(GetCivilizationShortDescription);82	Method(GetCivilizationShortDescriptionKey);83	Method(GetCivilizationAdjective);84	Method(GetCivilizationAdjectiveKey);85	Method(IsWhiteFlag);86	Method(GetStateReligionName);87	Method(GetStateReligionKey);88	Method(GetWorstEnemyName);89	Method(GetArtStyleType);9091	Method(CountCityFeatures);92	Method(CountNumBuildings);9394	Method(GetNumWorldWonders);95	Method(ChangeNumWorldWonders);96	Method(GetNumWondersBeatenTo);97	Method(SetNumWondersBeatenTo);9899	Method(IsCapitalConnectedToCity);100#if defined(MOD_API_LUA_EXTENSIONS)101	Method(IsPlotConnectedToPlot);102#endif103104	Method(IsTurnActive);105	Method(IsSimultaneousTurns);106107	Method(FindNewCapital);108	Method(CanRaze);109	Method(Raze);110	Method(Disband);111112	Method(CanReceiveGoody);113	Method(ReceiveGoody);114	Method(DoGoody);115	Method(CanGetGoody);116117	Method(CanFound);118	Method(Found);119120	Method(CanTrain);121	Method(CanConstruct);122	Method(CanCreate);123	Method(CanPrepare);124	Method(CanMaintain);125126	Method(IsCanPurchaseAnyCity);127	Method(GetFaithPurchaseType);128	Method(SetFaithPurchaseType);129	Method(GetFaithPurchaseIndex);130	Method(SetFaithPurchaseIndex);131132	Method(IsProductionMaxedUnitClass);133	Method(IsProductionMaxedBuildingClass);134	Method(IsProductionMaxedProject);135	Method(GetUnitProductionNeeded);136	Method(GetBuildingProductionNeeded);137	Method(GetProjectProductionNeeded);138139#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_PROCESS_STOCKPILE)140	Method(GetMaxStockpile);141#endif142143	Method(HasReadyUnit);144	Method(GetFirstReadyUnit);145	Method(GetFirstReadyUnitPlot);146147	Method(HasBusyUnit);148	Method(HasBusyMovingUnit);149150	Method(GetBuildingClassPrereqBuilding);151152	Method(RemoveBuildingClass);153154	Method(CanBuild);155	Method(IsBuildBlockedByFeature);156	Method(GetBestRoute);157	Method(GetImprovementUpgradeRate);158159	Method(CalculateTotalYield);160161	Method(CalculateUnitCost);162	Method(CalculateUnitSupply);163164	Method(GetNumMaintenanceFreeUnits);165166	Method(GetBuildingGoldMaintenance);167	Method(SetBaseBuildingGoldMaintenance);168	Method(ChangeBaseBuildingGoldMaintenance);169170	Method(GetImprovementGoldMaintenance);171	Method(CalculateGoldRate);172	Method(CalculateGoldRateTimes100);173	Method(CalculateGrossGoldTimes100);174	Method(CalculateInflatedCosts);175	Method(CalculateResearchModifier);176	Method(IsResearch);177	Method(CanEverResearch);178	Method(CanResearch);179	Method(CanResearchForFree);180	Method(GetCurrentResearch);181	Method(IsCurrentResearchRepeat);182	Method(IsNoResearchAvailable);183	Method(GetResearchTurnsLeft);184	Method(GetResearchCost);185	Method(GetResearchProgress);186187	Method(UnitsRequiredForGoldenAge);188	Method(UnitsGoldenAgeCapable);189	Method(UnitsGoldenAgeReady);190	Method(GreatGeneralThreshold);191	Method(GreatAdmiralThreshold);192	Method(SpecialistYield);193	Method(SetGreatGeneralCombatBonus);194	Method(GetGreatGeneralCombatBonus);195196	Method(GetStartingPlot);197	Method(SetStartingPlot);198	Method(GetTotalPopulation);199	Method(GetAveragePopulation);200	Method(GetRealPopulation);201202	Method(GetNewCityExtraPopulation);203	Method(ChangeNewCityExtraPopulation);204205	Method(GetTotalLand);206	Method(GetTotalLandScored);207208	Method(GetGold);209	Method(SetGold);210	Method(ChangeGold);211	Method(CalculateGrossGold);212	Method(GetLifetimeGrossGold);213	Method(GetGoldFromCitiesTimes100);214	Method(GetGoldFromCitiesMinusTradeRoutesTimes100);215	Method(GetGoldPerTurnFromDiplomacy);216	Method(GetCityConnectionRouteGoldTimes100);217	Method(GetCityConnectionGold);218	Method(GetCityConnectionGoldTimes100);219	Method(GetGoldPerTurnFromReligion);220	Method(GetGoldPerTurnFromTradeRoutes);221	Method(GetGoldPerTurnFromTradeRoutesTimes100);222	Method(GetGoldPerTurnFromTraits);223224	// Culture225226	Method(GetTotalJONSCulturePerTurn);227228	Method(GetJONSCulturePerTurnFromCities);229230	Method(GetJONSCulturePerTurnFromExcessHappiness);231	Method(GetJONSCulturePerTurnFromTraits);232233	Method(GetCultureWonderMultiplier);234235	Method(GetJONSCulturePerTurnForFree);236	Method(ChangeJONSCulturePerTurnForFree);237238	Method(GetJONSCulturePerTurnFromMinorCivs);239	Method(ChangeJONSCulturePerTurnFromMinorCivs);240	Method(GetCulturePerTurnFromMinorCivs);241	Method(GetCulturePerTurnFromMinor);242243	Method(GetCulturePerTurnFromReligion);244	Method(GetCulturePerTurnFromBonusTurns);245	Method(GetCultureCityModifier);246247	Method(GetJONSCulture);248	Method(SetJONSCulture);249	Method(ChangeJONSCulture);250251	Method(GetJONSCultureEverGenerated);252253	Method(GetLastTurnLifetimeCulture);254	Method(GetInfluenceOn);255	Method(GetLastTurnInfluenceOn);256	Method(GetInfluencePerTurn);257	Method(GetInfluenceLevel);258	Method(GetInfluenceTrend);259	Method(GetTurnsToInfluential);260	Method(GetNumCivsInfluentialOn);261	Method(GetNumCivsToBeInfluentialOn);262	Method(GetInfluenceTradeRouteScienceBonus);263	Method(GetInfluenceCityStateSpyRankBonus);264	Method(GetInfluenceMajorCivSpyRankBonus);265	Method(GetInfluenceSpyRankTooltip);266	Method(GetTourism);267	Method(GetTourismModifierWith);268	Method(GetTourismModifierWithTooltip);269	Method(GetPublicOpinionType);270	Method(GetPublicOpinionPreferredIdeology);271	Method(GetPublicOpinionTooltip);272	Method(GetPublicOpinionUnhappiness);273	Method(GetPublicOpinionUnhappinessTooltip);274#if defined(MOD_API_LUA_EXTENSIONS)275	Method(ChangeInfluenceOnAllPlayers);276	Method(ChangeInfluenceOnPlayer);277#endif278279#if defined(MOD_API_LUA_EXTENSIONS)280	Method(DoSwapGreatWorks);281#endif282	Method(HasAvailableGreatWorkSlot);283	Method(GetCityOfClosestGreatWorkSlot);284	Method(GetBuildingOfClosestGreatWorkSlot);285	Method(GetNextDigCompletePlot);286	Method(GetWrittenArtifactCulture);287	Method(GetNumGreatWorks);288	Method(GetNumGreatWorkSlots);289290	// Faith291292	Method(GetFaith);293	Method(SetFaith);294	Method(ChangeFaith);295	Method(GetTotalFaithPerTurn);296	Method(GetFaithPerTurnFromCities);297	Method(GetFaithPerTurnFromMinorCivs);298	Method(GetFaithPerTurnFromReligion);299	Method(HasCreatedPantheon);300	Method(GetBeliefInPantheon);301#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_API_RELIGION)302	Method(GetBeliefsInPantheon);303#endif304	Method(HasCreatedReligion);305	Method(CanCreatePantheon);306	Method(GetReligionCreatedByPlayer);307	Method(GetFoundedReligionEnemyCityCombatMod);308	Method(GetFoundedReligionFriendlyCityCombatMod);309	Method(GetMinimumFaithNextGreatProphet);310	Method(HasReligionInMostCities);311	Method(DoesUnitPassFaithPurchaseCheck);312313	// Happiness314315	Method(GetHappiness);316	Method(SetHappiness);317318	Method(GetExcessHappiness);319	Method(IsEmpireUnhappy);320	Method(IsEmpireVeryUnhappy);321	Method(IsEmpireSuperUnhappy);322323	Method(GetHappinessFromPolicies);324	Method(GetHappinessFromCities);325	Method(GetHappinessFromBuildings);326327	Method(GetExtraHappinessPerCity);328	Method(ChangeExtraHappinessPerCity);329330	Method(GetHappinessFromResources);331	Method(GetHappinessFromResourceVariety);332	Method(GetExtraHappinessPerLuxury);333	Method(GetHappinessFromReligion);334	Method(GetHappinessFromNaturalWonders);335	Method(GetHappinessFromLeagues);336337	Method(GetUnhappiness);338	Method(GetUnhappinessForecast);339340	Method(GetUnhappinessFromCityForUI);341342	Method(GetUnhappinessFromCityCount);343	Method(GetUnhappinessFromCapturedCityCount);344	Method(GetUnhappinessFromCityPopulation);345	Method(GetUnhappinessFromCitySpecialists);346	Method(GetUnhappinessFromOccupiedCities);347	Method(GetUnhappinessFromPuppetCityPopulation);348	Method(GetUnhappinessFromPublicOpinion);349	Method(GetUnhappinessFromUnits);350	Method(ChangeUnhappinessFromUnits);351352	Method(GetUnhappinessMod);353	Method(GetCityCountUnhappinessMod);354	Method(GetOccupiedPopulationUnhappinessMod);355	Method(GetCapitalUnhappinessMod);356	Method(GetTraitCityUnhappinessMod);357	Method(GetTraitPopUnhappinessMod);358	Method(IsHalfSpecialistUnhappiness);359360	Method(GetHappinessPerGarrisonedUnit);361	Method(SetHappinessPerGarrisonedUnit);362	Method(ChangeHappinessPerGarrisonedUnit);363364	Method(GetHappinessFromTradeRoutes);365	Method(GetHappinessPerTradeRoute);366	Method(SetHappinessPerTradeRoute);367	Method(ChangeHappinessPerTradeRoute);368369	Method(GetCityConnectionTradeRouteGoldModifier);370371	Method(GetHappinessFromMinorCivs);372	Method(GetHappinessFromMinor);373374	// END Happiness375376	Method(GetBarbarianCombatBonus);377	Method(SetBarbarianCombatBonus);378	Method(ChangeBarbarianCombatBonus);379	Method(GetCombatBonusVsHigherTech);380	Method(GetCombatBonusVsLargerCiv);381382	Method(GetGarrisonedCityRangeStrikeModifier);383	Method(ChangeGarrisonedCityRangeStrikeModifier);384385	Method(IsAlwaysSeeBarbCamps);386	Method(SetAlwaysSeeBarbCampsCount);387	Method(ChangeAlwaysSeeBarbCampsCount);388389	Method(IsPolicyBlocked);390	Method(IsPolicyBranchBlocked);391	Method(IsPolicyBranchUnlocked);392	Method(SetPolicyBranchUnlocked);393	Method(GetNumPolicyBranchesUnlocked);394	Method(GetPolicyBranchChosen);395	Method(GetNumPolicyBranchesAllowed);396	Method(GetNumPolicies);397	Method(GetNumPoliciesInBranch);398	Method(HasPolicy);399	Method(SetHasPolicy);400	Method(GetNextPolicyCost);401	Method(CanAdoptPolicy);402	Method(DoAdoptPolicy);403	Method(CanUnlockPolicyBranch);404	Method(GetDominantPolicyBranchForTitle);405	Method(GetLateGamePolicyTree);406	Method(GetBranchPicked1);407	Method(GetBranchPicked2);408	Method(GetBranchPicked3);409#if defined(MOD_API_LUA_EXTENSIONS)410	Method(GrantPolicy);411	Method(RevokePolicy);412	Method(SwapPolicy);413	Method(CanAdoptIdeology);414	Method(CanAdoptTenet);415#endif416417	Method(GetPolicyCatchSpiesModifier);418419	Method(GetNumPolicyBranchesFinished);420	Method(IsPolicyBranchFinished);421422	Method(GetAvailableTenets);423	Method(GetTenet);424425	Method(IsAnarchy);426	Method(GetAnarchyNumTurns);427	Method(SetAnarchyNumTurns);428	Method(ChangeAnarchyNumTurns);429430	Method(GetAdvancedStartPoints);431	Method(SetAdvancedStartPoints);432	Method(ChangeAdvancedStartPoints);433	Method(GetAdvancedStartUnitCost);434	Method(GetAdvancedStartCityCost);435	Method(GetAdvancedStartPopCost);436	Method(GetAdvancedStartBuildingCost);437	Method(GetAdvancedStartImprovementCost);438	Method(GetAdvancedStartRouteCost);439	Method(GetAdvancedStartTechCost);440	Method(GetAdvancedStartVisibilityCost);441442	Method(GetAttackBonusTurns);443	Method(GetCultureBonusTurns);444	Method(GetTourismBonusTurns);445446	Method(GetGoldenAgeProgressThreshold);447	Method(GetGoldenAgeProgressMeter);448	Method(SetGoldenAgeProgressMeter);449	Method(ChangeGoldenAgeProgressMeter);450	Method(GetNumGoldenAges);451	Method(SetNumGoldenAges);452	Method(ChangeNumGoldenAges);453	Method(GetGoldenAgeTurns);454	Method(GetGoldenAgeLength);455	Method(IsGoldenAge);456	Method(ChangeGoldenAgeTurns);457	Method(GetNumUnitGoldenAges);458	Method(ChangeNumUnitGoldenAges);459	Method(GetStrikeTurns);460	Method(GetGoldenAgeModifier);461    Method(GetGoldenAgeTourismModifier);462    Method(GetGoldenAgeGreatWriterRateModifier);463    Method(GetGoldenAgeGreatArtistRateModifier);464    Method(GetGoldenAgeGreatMusicianRateModifier);465466	Method(GetHurryModifier);467468	Method(CreateGreatGeneral);469	Method(GetGreatPeopleCreated);470	Method(GetGreatGeneralsCreated);471	Method(GetGreatPeopleThresholdModifier);472	Method(GetGreatGeneralsThresholdModifier);473	Method(GetGreatAdmiralsThresholdModifier);474	Method(GetGreatPeopleRateModifier);475	Method(GetGreatGeneralRateModifier);476	Method(GetDomesticGreatGeneralRateModifier);477	Method(GetGreatWriterRateModifier);478	Method(GetGreatArtistRateModifier);479	Method(GetGreatMusicianRateModifier);480	Method(GetGreatScientistRateModifier);481	Method(GetGreatMerchantRateModifier);482	Method(GetGreatEngineerRateModifier);483484	Method(GetPolicyGreatPeopleRateModifier);485	Method(GetPolicyGreatWriterRateModifier);486	Method(GetPolicyGreatArtistRateModifier);487	Method(GetPolicyGreatMusicianRateModifier);488	Method(GetPolicyGreatScientistRateModifier);489	Method(GetPolicyGreatMerchantRateModifier);490	Method(GetPolicyGreatEngineerRateModifier);491492	Method(GetProductionModifier);493	Method(GetUnitProductionModifier);494	Method(GetBuildingProductionModifier);495	Method(GetProjectProductionModifier);496	Method(GetSpecialistProductionModifier);497	Method(GetMaxGlobalBuildingProductionModifier);498	Method(GetMaxTeamBuildingProductionModifier);499	Method(GetMaxPlayerBuildingProductionModifier);500	Method(GetFreeExperience);501	Method(GetFeatureProductionModifier);502	Method(GetWorkerSpeedModifier);503	Method(GetImprovementUpgradeRateModifier);504	Method(GetMilitaryProductionModifier);505	Method(GetSpaceProductionModifier);506	Method(GetSettlerProductionModifier);507	Method(GetCapitalSettlerProductionModifier);508	Method(GetWonderProductionModifier);509510	Method(GetUnitProductionMaintenanceMod);511	Method(GetNumUnitsSupplied);512	Method(GetNumUnitsSuppliedByHandicap);513	Method(GetNumUnitsSuppliedByCities);514	Method(GetNumUnitsSuppliedByPopulation);515	Method(GetNumUnitsOutOfSupply);516517	Method(GetCityDefenseModifier);518	Method(GetNumNukeUnits);519	Method(GetNumOutsideUnits);520521	Method(GetGoldPerUnit);522	Method(ChangeGoldPerUnitTimes100);523	Method(GetGoldPerMilitaryUnit);524	Method(GetExtraUnitCost);525	Method(GetNumMilitaryUnits);526	Method(GetHappyPerMilitaryUnit);527	Method(IsMilitaryFoodProduction);528	Method(GetHighestUnitLevel);529530	Method(GetConscriptCount);531	Method(SetConscriptCount);532	Method(ChangeConscriptCount);533534	Method(GetMaxConscript);535	Method(GetOverflowResearch);536#if defined(MOD_API_LUA_EXTENSIONS)537	Method(SetOverflowResearch);538	Method(ChangeOverflowResearch);539#endif540	Method(GetExpInBorderModifier);541542	Method(GetLevelExperienceModifier);543544	Method(GetCultureBombTimer);545	Method(GetConversionTimer);546547	Method(GetCapitalCity);548	Method(IsHasLostCapital);549	Method(GetCitiesLost);550551	Method(GetPower);552	Method(GetMilitaryMight);553	Method(GetTotalTimePlayed);554555	Method(GetScore);556	Method(GetScoreFromCities);557	Method(GetScoreFromPopulation);558	Method(GetScoreFromLand);559	Method(GetScoreFromWonders);560	Method(GetScoreFromTechs);561	Method(GetScoreFromFutureTech);562	Method(ChangeScoreFromFutureTech);563	Method(GetScoreFromPolicies);564	Method(GetScoreFromGreatWorks);565	Method(GetScoreFromReligion);566	Method(GetScoreFromScenario1);567	Method(ChangeScoreFromScenario1);568	Method(GetScoreFromScenario2);569	Method(ChangeScoreFromScenario2);570	Method(GetScoreFromScenario3);571	Method(ChangeScoreFromScenario3);572	Method(GetScoreFromScenario4);573	Method(ChangeScoreFromScenario4);574575	Method(IsGoldenAgeCultureBonusDisabled);576577#if defined(MOD_API_LUA_EXTENSIONS)578	Method(IsMajorCiv);579#endif580	Method(IsMinorCiv);581	Method(GetMinorCivType);582	Method(GetMinorCivTrait);583	Method(GetPersonality);584#if defined(MOD_API_LUA_EXTENSIONS)585	Method(SetPersonality);586#endif587	Method(IsMinorCivHasUniqueUnit);588	Method(GetMinorCivUniqueUnit);589	Method(SetMinorCivUniqueUnit);590	Method(GetAlly);591	Method(GetAlliedTurns);592	Method(IsFriends);593	Method(IsAllies);594	Method(IsPlayerHasOpenBorders);595	Method(IsPlayerHasOpenBordersAutomatically);596	Method(GetFriendshipChangePerTurnTimes100);597	Method(GetMinorCivFriendshipWithMajor);598	Method(ChangeMinorCivFriendshipWithMajor);599	Method(GetMinorCivFriendshipAnchorWithMajor);600	Method(GetMinorCivFriendshipLevelWithMajor);601	Method(GetActiveQuestForPlayer);602	Method(IsMinorCivActiveQuestForPlayer);603	Method(GetMinorCivNumActiveQuestsForPlayer);604	Method(IsMinorCivDisplayedQuestForPlayer);605	Method(GetMinorCivNumDisplayedQuestsForPlayer);606	Method(GetQuestData1);607	Method(GetQuestData2);608	Method(GetQuestTurnsRemaining);609#if defined(MOD_EVENTS_QUESTS)610	Method(DoMinorCivStartQuestForPlayer);611	Method(GetQuestTurnsDuration);612#endif613	Method(IsMinorCivContestLeader);614	Method(GetMinorCivContestValueForLeader);615	Method(GetMinorCivContestValueForPlayer);616	Method(IsMinorCivUnitSpawningDisabled);617	Method(IsMinorCivRouteEstablishedWithMajor);618	Method(IsMinorWarQuestWithMajorActive);619	Method(GetMinorWarQuestWithMajorRemainingCount);620	Method(IsProxyWarActiveForMajor);621	Method(IsThreateningBarbariansEventActiveForPlayer);622	Method(GetTurnsSinceThreatenedByBarbarians);623	Method(GetTurnsSinceThreatenedAnnouncement);624	Method(GetFriendshipFromGoldGift);625	Method(GetFriendshipNeededForNextLevel);626	Method(GetMinorCivFavoriteMajor);627	Method(GetMinorCivScienceFriendshipBonus);628	Method(GetMinorCivCultureFriendshipBonus); // DEPRECATED629	Method(GetMinorCivCurrentCultureFlatBonus);630	Method(GetMinorCivCurrentCulturePerBuildingBonus);631	Method(GetCurrentCultureBonus); // DEPRECATED632	Method(GetMinorCivCurrentCultureBonus);633	Method(GetMinorCivHappinessFriendshipBonus); // DEPRECATED634	Method(GetMinorCivCurrentHappinessFlatBonus);635	Method(GetMinorCivCurrentHappinessPerLuxuryBonus);636	Method(GetMinorCivCurrentHappinessBonus);637	Method(GetMinorCivCurrentFaithBonus);638	Method(GetCurrentCapitalFoodBonus);639	Method(GetCurrentOtherCityFoodBonus);640	Method(GetCurrentSpawnEstimate);641	Method(GetCurrentScienceFriendshipBonusTimes100);642	Method(IsPeaceBlocked);643	Method(IsMinorPermanentWar);644	Method(GetNumMinorCivsMet);645	Method(DoMinorLiberationByMajor);646	Method(IsProtectedByMajor);647	Method(CanMajorProtect);648	Method(CanMajorStartProtection);649	Method(CanMajorWithdrawProtection);650	Method(GetTurnLastPledgedProtectionByMajor);651	Method(GetTurnLastPledgeBrokenByMajor);652	Method(GetMinorCivBullyGoldAmount);653	Method(CanMajorBullyGold);654	Method(GetMajorBullyGoldDetails);655	Method(CanMajorBullyUnit);656	Method(GetMajorBullyUnitDetails);657#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_EVENTS_QUESTS)658	Method(IsEverBulliedByMajor);659	Method(IsRecentlyBulliedByMajor);660#endif661	Method(CanMajorBuyout);662	Method(GetBuyoutCost);663	Method(CanMajorGiftTileImprovement);664	Method(CanMajorGiftTileImprovementAtPlot);665	Method(GetGiftTileImprovementCost);666	Method(AddMinorCivQuestIfAble);667	Method(GetFriendshipFromUnitGift);668669	Method(IsAlive);670	Method(IsEverAlive);671	Method(IsExtendedGame);672	Method(IsFoundedFirstCity);673674	Method(GetEndTurnBlockingType);675	Method(GetEndTurnBlockingNotificationIndex);676	Method(HasReceivedNetTurnComplete);677	Method(IsStrike);678679	Method(GetID);680	Method(GetHandicapType);681	Method(GetCivilizationType);682	Method(GetLeaderType);683#if defined(MOD_API_EXTENSIONS) && defined(MOD_API_LUA_EXTENSIONS)684	Method(SetLeaderType);685#endif686	Method(GetPersonalityType);687	Method(SetPersonalityType);688	Method(GetCurrentEra);689690	Method(GetTeam);691692	Method(GetPlayerColor);693	Method(GetPlayerColors);694695	Method(GetSeaPlotYield);696	Method(GetYieldRateModifier);697	Method(GetCapitalYieldRateModifier);698	Method(GetExtraYieldThreshold);699700	// Science701702	Method(GetScience);703	Method(GetScienceTimes100);704705	Method(GetScienceFromCitiesTimes100);706	Method(GetScienceFromOtherPlayersTimes100);707	Method(GetScienceFromHappinessTimes100);708	Method(GetScienceFromResearchAgreementsTimes100);709	Method(GetScienceFromBudgetDeficitTimes100);710711	// END Science712713	Method(GetProximityToPlayer);714	Method(DoUpdateProximityToPlayer);715716	Method(GetIncomingUnitType);717	Method(GetIncomingUnitCountdown);718719	Method(IsOption);720	Method(SetOption);721	Method(IsPlayable);722	Method(SetPlayable);723724	Method(GetNumResourceUsed);725	Method(GetNumResourceTotal);726	Method(ChangeNumResourceTotal);727	Method(GetNumResourceAvailable);728729	Method(GetResourceExport);730	Method(GetResourceImport);731	Method(GetResourceFromMinors);732733	Method(GetImprovementCount);734735	Method(IsBuildingFree);736	Method(GetUnitClassCount);737	Method(IsUnitClassMaxedOut);738	Method(GetUnitClassMaking);739	Method(GetUnitClassCountPlusMaking);740741	Method(GetBuildingClassCount);742	Method(IsBuildingClassMaxedOut);743	Method(GetBuildingClassMaking);744	Method(GetBuildingClassCountPlusMaking);745	Method(GetHurryCount);746	Method(IsHasAccessToHurry);747	Method(IsCanHurry);748	Method(GetHurryGoldCost);749750	//Method(IsSpecialistValid);751	Method(IsResearchingTech);752	Method(SetResearchingTech);753754	Method(GetCombatExperience);755	Method(ChangeCombatExperience);756	Method(SetCombatExperience);757	Method(GetLifetimeCombatExperience);758	Method(GetNavalCombatExperience);759	Method(ChangeNavalCombatExperience);760	Method(SetNavalCombatExperience);761762	Method(GetSpecialistExtraYield);763764	Method(FindPathLength);765766	Method(GetQueuePosition);767	Method(ClearResearchQueue);768	Method(PushResearch);769	Method(PopResearch);770	Method(GetLengthResearchQueue);771	Method(AddCityName);772	Method(GetNumCityNames);773	Method(GetCityName);774775	Method(Cities);776	Method(GetNumCities);777	Method(GetCityByID);778#if defined(MOD_API_LUA_EXTENSIONS)779	Method(GetNumPuppetCities);780#endif781782	Method(Units);783	Method(GetNumUnits);784	Method(GetUnitByID);785786	Method(AI_updateFoundValues);787	Method(AI_foundValue);788789	Method(GetScoreHistory);790	Method(GetEconomyHistory);791	Method(GetIndustryHistory);792	Method(GetAgricultureHistory);793	Method(GetPowerHistory);794795	Method(GetReplayData);796	Method(SetReplayDataValue);797798	Method(GetScriptData);799	Method(SetScriptData);800801	Method(GetNumPlots);802803	Method(GetNumPlotsBought);804	Method(SetNumPlotsBought);805	Method(ChangeNumPlotsBought);806807	Method(GetBuyPlotCost);808	Method(GetPlotDanger);809810#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_GLOBAL_CITY_WORKING)811	Method(GetBuyPlotDistance);812	Method(GetWorkPlotDistance);813#endif814#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_TRAITS_CITY_WORKING) || defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_BUILDINGS_CITY_WORKING) || defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_POLICIES_CITY_WORKING) || defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_TECHS_CITY_WORKING)815	Method(GetCityWorkingChange);816	Method(ChangeCityWorkingChange);817#endif818819#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_TRAITS_CITY_AUTOMATON_WORKERS) || defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_BUILDINGS_CITY_AUTOMATON_WORKERS) || defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_POLICIES_CITY_AUTOMATON_WORKERS) || defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_TECHS_CITY_AUTOMATON_WORKERS)820	Method(GetCityAutomatonWorkersChange);821	Method(ChangeCityAutomatonWorkersChange);822#endif823824	Method(DoBeginDiploWithHuman);825	Method(DoTradeScreenOpened);826	Method(DoTradeScreenClosed);827	Method(GetMajorCivApproach);828	Method(GetApproachTowardsUsGuess);829	Method(IsWillAcceptPeaceWithPlayer);830	Method(IsProtectingMinor);831	Method(IsDontSettleMessageTooSoon);832	Method(IsStopSpyingMessageTooSoon);833	Method(IsAskedToStopConverting);834	Method(IsAskedToStopDigging);835	Method(IsDoFMessageTooSoon);836	Method(IsDoF);837	Method(GetDoFCounter);838	Method(IsPlayerDoFwithAnyFriend);839	Method(IsPlayerDoFwithAnyEnemy);840	Method(IsPlayerDenouncedFriend);841	Method(IsPlayerDenouncedEnemy);842	Method(IsUntrustworthyFriend);843	Method(GetNumFriendsDenouncedBy);844	Method(IsFriendDenouncedUs);845	Method(GetWeDenouncedFriendCount);846	Method(IsFriendDeclaredWarOnUs);847	Method(GetWeDeclaredWarOnFriendCount);848	//Method(IsWorkingAgainstPlayerAccepted);849	Method(GetCoopWarAcceptedState);850	Method(GetNumWarsFought);851852	Method(GetLandDisputeLevel);853	Method(GetVictoryDisputeLevel);854	Method(GetWonderDisputeLevel);855	Method(GetMinorCivDisputeLevel);856	Method(GetWarmongerThreat);857	Method(IsPlayerNoSettleRequestEverAsked);858	Method(IsPlayerStopSpyingRequestEverAsked);859	Method(IsDemandEverMade);860	Method(GetNumCiviliansReturnedToMe);861	Method(GetNumLandmarksBuiltForMe);862	Method(GetNumTimesCultureBombed);863	Method(GetNegativeReligiousConversionPoints);864	Method(GetNegativeArchaeologyPoints);865	Method(HasOthersReligionInMostCities);866	Method(IsPlayerBrokenMilitaryPromise);867	Method(IsPlayerIgnoredMilitaryPromise);868	Method(IsPlayerBrokenExpansionPromise);869	Method(IsPlayerIgnoredExpansionPromise);870	Method(IsPlayerBrokenBorderPromise);871	Method(IsPlayerIgnoredBorderPromise);872	Method(IsPlayerBrokenAttackCityStatePromise);873	Method(IsPlayerIgnoredAttackCityStatePromise);874	Method(IsPlayerBrokenBullyCityStatePromise);875	Method(IsPlayerIgnoredBullyCityStatePromise);876	Method(IsPlayerBrokenSpyPromise);877	Method(IsPlayerIgnoredSpyPromise);878	Method(IsPlayerForgivenForSpying);879	Method(IsPlayerBrokenNoConvertPromise);880	Method(IsPlayerIgnoredNoConvertPromise);881	Method(IsPlayerBrokenNoDiggingPromise);882	Method(IsPlayerIgnoredNoDiggingPromise);883	Method(IsPlayerBrokenCoopWarPromise);884	Method(GetOtherPlayerNumProtectedMinorsKilled);885	Method(GetOtherPlayerNumProtectedMinorsAttacked);886	Method(GetTurnsSincePlayerBulliedProtectedMinor);887	Method(IsHasPlayerBulliedProtectedMinor);888	Method(IsDenouncedPlayer);889	Method(GetDenouncedPlayerCounter);890	Method(IsDenouncingPlayer);891	Method(IsPlayerRecklessExpander);892	Method(GetRecentTradeValue);893	Method(GetCommonFoeValue);894	Method(GetRecentAssistValue);895	Method(IsGaveAssistanceTo);896	Method(IsHasPaidTributeTo);897	Method(IsNukedBy);898	Method(IsCapitalCapturedBy);899	Method(IsAngryAboutProtectedMinorKilled);900	Method(IsAngryAboutProtectedMinorAttacked);901	Method(IsAngryAboutProtectedMinorBullied);902	Method(IsAngryAboutSidedWithTheirProtectedMinor);903	Method(GetNumTimesRobbedBy);904	Method(GetNumTimesIntrigueSharedBy);905906	Method(DoForceDoF);907	Method(DoForceDenounce);908909	Method(GetNumNotifications);910	Method(GetNotificationStr);911	Method(GetNotificationSummaryStr);912	Method(GetNotificationIndex);913	Method(GetNotificationTurn);914	Method(GetNotificationDismissed);915	Method(AddNotification);916#if defined(MOD_API_LUA_EXTENSIONS)917	Method(DismissNotification);918#endif919#if defined(MOD_EVENTS_QUESTS)920	Method(AddQuestNotification);921#endif922#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_API_PLAYER_LOGS)923	Method(GetDiplomacyLog);924	Method(GetMilitaryLog);925#endif926927	Method(GetRecommendedWorkerPlots);928	Method(GetRecommendedFoundCityPlots);929	Method(GetUnimprovedAvailableLuxuryResource);930	Method(IsAnyPlotImproved);931	Method(GetPlayerVisiblePlot);932933	Method(GetEverPoppedGoody);934	Method(GetClosestGoodyPlot);935	Method(IsAnyGoodyPlotAccessible);936	Method(GetPlotHasOrder);937	Method(GetAnyUnitHasOrderToGoody);938	Method(GetEverTrainedBuilder);939940	Method(GetNumFreeTechs);941	Method(SetNumFreeTechs);942	Method(GetNumFreePolicies);943	Method(SetNumFreePolicies);944	Method(ChangeNumFreePolicies);945	Method(GetNumFreeTenets);946	Method(SetNumFreeTenets);947	Method(ChangeNumFreeTenets);948	Method(GetNumFreeGreatPeople);949	Method(SetNumFreeGreatPeople);950	Method(ChangeNumFreeGreatPeople);951	Method(GetNumMayaBoosts);952	Method(SetNumMayaBoosts);953	Method(ChangeNumMayaBoosts);954	Method(GetNumFaithGreatPeople);955	Method(SetNumFaithGreatPeople);956	Method(ChangeNumFaithGreatPeople);957	Method(GetUnitBaktun);958	Method(IsFreeMayaGreatPersonChoice);959960	Method(GetTraitGoldenAgeCombatModifier);961	Method(GetTraitCityStateCombatModifier);962	Method(GetTraitGreatGeneralExtraBonus);963	Method(GetTraitGreatScientistRateModifier);964#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_TRAITS_ANY_BELIEF)965	Method(IsTraitAnyBelief);966#endif967	Method(IsTraitBonusReligiousBelief);968	Method(GetHappinessFromLuxury);969	Method(IsAbleToAnnexCityStates);970	Method(IsUsingMayaCalendar);971	Method(GetMayaCalendarString);972	Method(GetMayaCalendarLongString);973974	Method(GetExtraBuildingHappinessFromPolicies);975976	Method(GetNextCity);977	Method(GetPrevCity);978979	Method(GetFreePromotionCount);980	Method(IsFreePromotion);981	Method(ChangeFreePromotionCount);982983	Method(GetEmbarkedGraphicOverride);984	Method(SetEmbarkedGraphicOverride);985986	Method(AddTemporaryDominanceZone);987988	Method(GetNaturalWonderYieldModifier);989990	Method(GetPolicyBuildingClassYieldModifier);991	Method(GetPolicyBuildingClassYieldChange);992	Method(GetPolicyEspionageModifier);993	Method(GetPolicyEspionageCatchSpiesModifier);994995#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_RELIGION_CONVERSION_MODIFIERS)996	Method(GetPolicyConversionModifier);997#endif998999	Method(GetPlayerBuildingClassYieldChange);1000	Method(GetPlayerBuildingClassHappiness);10011002	Method(WasResurrectedBy);1003	Method(WasResurrectedThisTurnBy);10041005	Method(GetOpinionTable);1006	Method(GetDealValue);1007	Method(GetDealMyValue);1008	Method(GetDealTheyreValue);1009	Method(MayNotAnnex);10101011	Method(GetEspionageCityStatus);1012	Method(GetNumSpies);1013	Method(GetNumUnassignedSpies);1014	Method(GetEspionageSpies);1015#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_API_ESPIONAGE)1016	Method(EspionageCreateSpy);1017	Method(EspionagePromoteSpy);1018	Method(EspionageSetPassive);1019	Method(EspionageSetOutcome);1020#endif1021	Method(HasSpyEstablishedSurveillance);1022	Method(IsSpyDiplomat);1023	Method(IsSpySchmoozing);1024	Method(CanSpyStageCoup);1025	Method(GetAvailableSpyRelocationCities);1026	Method(GetNumTechsToSteal);1027	Method(GetIntrigueMessages);1028	Method(HasRecentIntrigueAbout);1029	Method(GetRecentIntrigueInfo);1030	Method(GetCoupChanceOfSuccess);1031	Method(IsMyDiplomatVisitingThem);1032	Method(IsOtherDiplomatVisitingMe);10331034	Method(GetTradeRouteRange);1035	Method(GetInternationalTradeRoutePlotToolTip);1036	Method(GetInternationalTradeRoutePlotMouseoverToolTip);1037	Method(GetNumInternationalTradeRoutesUsed);1038	Method(GetNumInternationalTradeRoutesAvailable);1039#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_API_TRADEROUTES)1040	Method(GetPotentialInternationalTradeRouteDestinationsFrom);1041#endif1042	Method(GetPotentialInternationalTradeRouteDestinations);1043	Method(GetInternationalTradeRouteBaseBonus);1044	Method(GetInternationalTradeRouteGPTBonus);1045	Method(GetInternationalTradeRouteResourceBonus);1046	Method(GetInternationalTradeRouteResourceTraitModifier);1047	Method(GetInternationalTradeRouteExclusiveBonus);1048	Method(GetInternationalTradeRouteYourBuildingBonus);1049	Method(GetInternationalTradeRouteTheirBuildingBonus);1050	Method(GetInternationalTradeRoutePolicyBonus);1051	Method(GetInternationalTradeRouteOtherTraitBonus);1052	Method(GetInternationalTradeRouteRiverModifier);1053	Method(GetInternationalTradeRouteDomainModifier);1054	Method(GetInternationalTradeRouteTotal);1055	Method(GetInternationalTradeRouteScience);1056	Method(GetPotentialTradeUnitNewHomeCity);1057	Method(GetPotentialAdmiralNewPort);1058	Method(GetNumAvailableTradeUnits);1059	Method(GetTradeUnitType);1060	Method(GetTradeYourRoutesTTString);1061	Method(GetTradeToYouRoutesTTString);1062	Method(GetTradeRoutes);1063	Method(GetTradeRoutesAvailable);1064	Method(GetTradeRoutesToYou);1065	Method(GetNumTechDifference);10661067	// Culture functions. Not sure where they should go1068	Method(GetGreatWorks);1069	Method(GetSwappableGreatWriting);1070	Method(GetSwappableGreatArt);1071	Method(GetSwappableGreatArtifact);1072	Method(GetSwappableGreatMusic);1073	Method(GetOthersGreatWorks);10741075	Method(CanCommitVote);1076	Method(GetCommitVoteDetails);10771078	Method(IsConnected);1079	Method(IsObserver);10801081	Method(HasTurnTimerExpired);10821083	Method(HasUnitOfClassType);10841085	Method(GetWarmongerPreviewString);1086	Method(GetLiberationPreviewString);10871088#if defined(MOD_API_LUA_EXTENSIONS)1089	Method(AddMessage);1090#endif10911092#if defined(MOD_API_LUA_EXTENSIONS)1093	Method(HasBelief);1094	Method(HasBuilding);1095	Method(HasBuildingClass);1096	Method(HasAnyWonder);1097	Method(HasWonder);1098	Method(IsCivilization);1099	Method(IsInEra);1100	Method(HasReachedEra);1101	Method(HasAnyNaturalWonder);1102	Method(HasNaturalWonder);1103	// Method(HasPolicy);1104	Method(HasTenet);1105	Method(HasPolicyBranch);1106	Method(HasIdeology);1107	Method(HasProject);1108	Method(IsAtPeace);1109	Method(IsAtPeaceAllMajors);1110	Method(IsAtPeaceAllMinors);1111	Method(IsAtPeaceWith);1112	Method(IsAtWar);1113	Method(IsAtWarAnyMajor);1114	Method(IsAtWarAnyMinor);1115	Method(IsAtWarWith);1116	Method(HasPantheon);1117	Method(HasAnyReligion);1118	Method(HasReligion);1119	Method(HasEnhancedReligion);1120	Method(IsConnectedTo);1121	Method(HasSpecialistSlot);1122	Method(HasSpecialist);1123	Method(HasTech);1124	Method(HasAnyDomesticTradeRoute);1125	Method(HasAnyInternationalTradeRoute);1126	Method(HasAnyTradeRoute);1127	Method(HasAnyTradeRouteWith);1128	Method(HasUnit);1129	Method(HasUnitClass);11301131	Method(HasTrait);1132	Method(HasAnyHolyCity);1133	Method(HasHolyCity);1134	Method(HasCapturedHolyCity);1135	Method(HasEmbassyWith);1136	Method(DoForceDefPact);11371138	Method(CountAllFeature);1139	Method(CountAllWorkedFeature);1140	Method(CountAllImprovement);1141	Method(CountAllWorkedImprovement);1142	Method(CountAllPlotType);1143	Method(CountAllWorkedPlotType);1144	Method(CountAllResource);1145	Method(CountAllWorkedResource);1146	Method(CountAllTerrain);1147	Method(CountAllWorkedTerrain);1148#endif11491150#if defined(MOD_API_LUA_EXTENSIONS)1151	Method(GetActiveEconomicStrategies);1152	Method(IsActiveEconomicStrategy);1153	Method(ActivateEconomicStrategy);1154	Method(DeactivateEconomicStrategy);11551156	Method(GetActiveMilitaryStrategies);1157	Method(IsActiveMilitaryStrategy);1158	Method(ActivateMilitaryStrategy);1159	Method(DeactivateMilitaryStrategy);1160#endif1161}

Calls