Bazaar developer reference

CvAIOperation::GetTargetPlot() const

Defined in
CvAIOperation.cpp, line 173
Class
CvAIOperation
Hook name
CivHooks::CvAIOperation_GetTargetPlot

Hooks

static bool BeforeCvAIOperation_GetTargetPlot(const CvAIOperation* self, CvPlot*& result);static void AfterCvAIOperation_GetTargetPlot(const CvAIOperation* self, CvPlot*& result);static CvPlot* ReplaceCvAIOperation_GetTargetPlot(CvPlot* (*original)(const CvAIOperation*), const CvAIOperation* self);CivRegisterBefore<CivHooks::CvAIOperation_GetTargetPlot>(host, &BeforeCvAIOperation_GetTargetPlot);CivRegisterAfter<CivHooks::CvAIOperation_GetTargetPlot>(host, &AfterCvAIOperation_GetTargetPlot);CivRegisterReplace<CivHooks::CvAIOperation_GetTargetPlot>(host, &ReplaceCvAIOperation_GetTargetPlot);

Code

172/// Retrieve plot targeted by this operation173CvPlot* CvAIOperation::GetTargetPlot() const174{175	CvPlot* rtnValue = NULL;176	rtnValue =  GC.getMap().plot(m_iTargetX, m_iTargetY);177	return rtnValue;178}

Calls

Called by

32 functions in 4 files