CvAIOperation::GetStartCityPlot() const
- Defined in
- CvAIOperation.cpp, line 203
- Class
- CvAIOperation
- Hook name
CivHooks::CvAIOperation_GetStartCityPlot
Hooks
static bool BeforeCvAIOperation_GetStartCityPlot(const CvAIOperation* self, CvPlot*& result);static void AfterCvAIOperation_GetStartCityPlot(const CvAIOperation* self, CvPlot*& result);static CvPlot* ReplaceCvAIOperation_GetStartCityPlot(CvPlot* (*original)(const CvAIOperation*), const CvAIOperation* self);CivRegisterBefore<CivHooks::CvAIOperation_GetStartCityPlot>(host, &BeforeCvAIOperation_GetStartCityPlot);CivRegisterAfter<CivHooks::CvAIOperation_GetStartCityPlot>(host, &AfterCvAIOperation_GetStartCityPlot);CivRegisterReplace<CivHooks::CvAIOperation_GetStartCityPlot>(host, &ReplaceCvAIOperation_GetStartCityPlot);
Code
202/// Retrieve city where this operation starts203CvPlot* CvAIOperation::GetStartCityPlot() const204{205 CvPlot* rtnValue = NULL;206 rtnValue = GC.getMap().plot(m_iStartCityX, m_iStartCityY);207 return rtnValue;208}
Calls
Called by
- CvAINavalEscortedOperation::GetOperationStartCity() const
- CvAINavalOperation::GetOperationStartCity() const
- CvAIOperation::GetOperationStartCity() const
- CvAIOperationBasicCityAttack::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIOperationNavalAttack::GetOperationStartCity() const
- CvAIOperationNavalAttack::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvAIOperationNukeAttack::GetOperationStartCity() const
- CvAIOperationPureNavalCityAttack::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)