Bazaar developer reference

CvAIOperation::SetTargetPlot(CvPlot *)

Defined in
CvAIOperation.cpp, line 181
Class
CvAIOperation
Hook name
CivHooks::CvAIOperation_SetTargetPlot

Hooks

static bool BeforeCvAIOperation_SetTargetPlot(CvAIOperation* self, CvPlot* pTarget);static void AfterCvAIOperation_SetTargetPlot(CvAIOperation* self, CvPlot* pTarget);static void ReplaceCvAIOperation_SetTargetPlot(void (*original)(CvAIOperation*, CvPlot*), CvAIOperation* self, CvPlot* pTarget);CivRegisterBefore<CivHooks::CvAIOperation_SetTargetPlot>(host, &BeforeCvAIOperation_SetTargetPlot);CivRegisterAfter<CivHooks::CvAIOperation_SetTargetPlot>(host, &AfterCvAIOperation_SetTargetPlot);CivRegisterReplace<CivHooks::CvAIOperation_SetTargetPlot>(host, &ReplaceCvAIOperation_SetTargetPlot);

Code

180/// Set plot targeted by this operation181void CvAIOperation::SetTargetPlot(CvPlot* pTarget)182{183	m_iTargetX = pTarget->getX();184	m_iTargetY = pTarget->getY();185}

Calls

Called by