CvResourceInfo::getTechCityTrade() const
- Defined in
- CvInfos.cpp, line 4462
- Class
- CvResourceInfo
- Hook name
CivHooks::CvResourceInfo_getTechCityTrade
Hooks
static bool BeforeCvResourceInfo_getTechCityTrade(const CvResourceInfo* self, int& result);static void AfterCvResourceInfo_getTechCityTrade(const CvResourceInfo* self, int& result);static int ReplaceCvResourceInfo_getTechCityTrade(int (*original)(const CvResourceInfo*), const CvResourceInfo* self);CivRegisterBefore<CivHooks::CvResourceInfo_getTechCityTrade>(host, &BeforeCvResourceInfo_getTechCityTrade);CivRegisterAfter<CivHooks::CvResourceInfo_getTechCityTrade>(host, &AfterCvResourceInfo_getTechCityTrade);CivRegisterReplace<CivHooks::CvResourceInfo_getTechCityTrade>(host, &ReplaceCvResourceInfo_getTechCityTrade);
Code
4462int CvResourceInfo::getTechCityTrade() const4463{4464 return m_iTechCityTrade;4465}
Called by
- CvBuilderTaskingAI::GetResourceWeight(ResourceTypes, ImprovementTypes, int)
- CvCity::PreKill(bool)
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvCity::processBuilding(BuildingTypes, int, bool, bool, bool)
- CvMinorCivAI::GetNearbyResourceForQuest(PlayerTypes)
- CvPlot::SetImprovementPillaged(bool, bool)
- CvPlot::setImprovementType(ImprovementTypes, PlayerTypes)
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)