CvPlot::GetCityPurchaseID()
- Defined in
- CvPlot.cpp, line 5755
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_GetCityPurchaseID
Hooks
static bool BeforeCvPlot_GetCityPurchaseID(CvPlot* self, int& result);static void AfterCvPlot_GetCityPurchaseID(CvPlot* self, int& result);static int ReplaceCvPlot_GetCityPurchaseID(int (*original)(CvPlot*), CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_GetCityPurchaseID>(host, &BeforeCvPlot_GetCityPurchaseID);CivRegisterAfter<CivHooks::CvPlot_GetCityPurchaseID>(host, &AfterCvPlot_GetCityPurchaseID);CivRegisterReplace<CivHooks::CvPlot_GetCityPurchaseID>(host, &ReplaceCvPlot_GetCityPurchaseID);
Code
5755int CvPlot::GetCityPurchaseID(void)5756{5757 return m_purchaseCity.iID;5758}
Called by
- CvCity::CanBuyPlot(int, int, bool)
- CvCity::GetBuyablePlotList(std::vector<int> &)
- CvCity::PreKill(bool)
- CvDealAI::GetCityValue(int, int, bool, PlayerTypes, bool)
- CvPlayer::acquireCity(CvCity *, bool, bool, bool)
- CvUnit::PerformCultureBomb(int)
- CvLuaPlot::lGetCityPurchaseID(lua_State *)
- CvLuaPlot::lGetOwner(lua_State *)