CvGameSpeedInfo::getTrainPercent() const
- Defined in
- CvInfos.cpp, line 3329
- Class
- CvGameSpeedInfo
- Hook name
CivHooks::CvGameSpeedInfo_getTrainPercent
Hooks
static bool BeforeCvGameSpeedInfo_getTrainPercent(const CvGameSpeedInfo* self, int& result);static void AfterCvGameSpeedInfo_getTrainPercent(const CvGameSpeedInfo* self, int& result);static int ReplaceCvGameSpeedInfo_getTrainPercent(int (*original)(const CvGameSpeedInfo*), const CvGameSpeedInfo* self);CivRegisterBefore<CivHooks::CvGameSpeedInfo_getTrainPercent>(host, &BeforeCvGameSpeedInfo_getTrainPercent);CivRegisterAfter<CivHooks::CvGameSpeedInfo_getTrainPercent>(host, &AfterCvGameSpeedInfo_getTrainPercent);CivRegisterReplace<CivHooks::CvGameSpeedInfo_getTrainPercent>(host, &ReplaceCvGameSpeedInfo_getTrainPercent);
Code
3329int CvGameSpeedInfo::getTrainPercent() const3330{3331 return m_iTrainPercent;3332}
Called by
- CvCity::GetFaithPurchaseCost(UnitTypes, bool)
- CityStrategyAIHelpers::IsTestCityStrategy_CapitalNeedSettler(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_NeedTileImprovers(AICityStrategyTypes, CvCity *)
- CvGame::GetFaithCost(CvUnitEntry *) const
- CvGame::doTurn()
- CvPlayer::DoGreatPersonExpended(UnitTypes, CvUnit *)
- CvPlayer::DoResetCityRevoltCounter()
- CvPlayer::DoResetUprisingCounter(bool)
- CvPlayer::getProductionNeeded(UnitTypes) const
- CvPlayer::greatAdmiralThreshold() const
- CvPlayer::greatGeneralThreshold() const
- CvPlayer::initFreeState(CvGameInitialItemsOverrides &)
- CvCityReligions::CityConvertsReligion(ReligionTypes, ReligionTypes, PlayerTypes)
- CvGameReligions::FoundPantheon(PlayerTypes, BeliefTypes)
- CvGameReligions::Init()
- CvPlayerReligions::GetCostNextProphet(bool, bool, bool) const
- CvUnit::GetScrapGold() const