CvAICityStrategyEntry::GetWeightThreshold() const
- Defined in
- CvCityStrategyAI.cpp, line 115
- Class
- CvAICityStrategyEntry
- Hook name
CivHooks::CvAICityStrategyEntry_GetWeightThreshold
Hooks
static bool BeforeCvAICityStrategyEntry_GetWeightThreshold(const CvAICityStrategyEntry* self, int& result);static void AfterCvAICityStrategyEntry_GetWeightThreshold(const CvAICityStrategyEntry* self, int& result);static int ReplaceCvAICityStrategyEntry_GetWeightThreshold(int (*original)(const CvAICityStrategyEntry*), const CvAICityStrategyEntry* self);CivRegisterBefore<CivHooks::CvAICityStrategyEntry_GetWeightThreshold>(host, &BeforeCvAICityStrategyEntry_GetWeightThreshold);CivRegisterAfter<CivHooks::CvAICityStrategyEntry_GetWeightThreshold>(host, &AfterCvAICityStrategyEntry_GetWeightThreshold);CivRegisterReplace<CivHooks::CvAICityStrategyEntry_GetWeightThreshold>(host, &ReplaceCvAICityStrategyEntry_GetWeightThreshold);
Code
114/// The amount of weight a Strategy must accumulate to be adopted (if applicable)115int CvAICityStrategyEntry::GetWeightThreshold() const116{117 return m_iWeightThreshold;118}
Called by
- CityStrategyAIHelpers::IsTestCityStrategy_CapitalNeedSettler(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_EnoughTileImprovers(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_NeedNavalGrowth(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_NeedTileImprovers(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_WantTileImprovers(AICityStrategyTypes, CvCity *)