CvPlot::GetResourceLinkedCity() const
- Defined in
- CvPlot.cpp, line 7442
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_GetResourceLinkedCity
Hooks
static bool BeforeCvPlot_GetResourceLinkedCity(const CvPlot* self, CvCity*& result);static void AfterCvPlot_GetResourceLinkedCity(const CvPlot* self, CvCity*& result);static CvCity* ReplaceCvPlot_GetResourceLinkedCity(CvCity* (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_GetResourceLinkedCity>(host, &BeforeCvPlot_GetResourceLinkedCity);CivRegisterAfter<CivHooks::CvPlot_GetResourceLinkedCity>(host, &AfterCvPlot_GetResourceLinkedCity);CivRegisterReplace<CivHooks::CvPlot_GetResourceLinkedCity>(host, &ReplaceCvPlot_GetResourceLinkedCity);
Code
7442CvCity* CvPlot::GetResourceLinkedCity() const7443{7444 return getCity(m_ResourceLinkedCity);7445}
Calls
- getCity(IDInfo)
IDInfo::IDInfo
Called by
- CvCity::IsHasResourceLocal(ResourceTypes, bool) const
- CvCity::PreKill(bool)
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvPlot::SetImprovementPillaged(bool, bool)
- CvPlot::SetResourceLinkedCity(const CvCity *)
- CvPlot::SetResourceLinkedCityActive(bool)
- CvPlot::setImprovementType(ImprovementTypes, PlayerTypes)
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)