Bazaar developer reference

CvAINavalEscortedOperation::FindBestTarget(CvUnit *)

Defined in
CvAIOperation.cpp, line 5296
Class
CvAINavalEscortedOperation
Hook name
CivHooks::CvAINavalEscortedOperation_FindBestTarget

Hooks

static bool BeforeCvAINavalEscortedOperation_FindBestTarget(CvAINavalEscortedOperation* self, CvUnit* pUnit, CvPlot*& result);static void AfterCvAINavalEscortedOperation_FindBestTarget(CvAINavalEscortedOperation* self, CvUnit* pUnit, CvPlot*& result);static CvPlot* ReplaceCvAINavalEscortedOperation_FindBestTarget(CvPlot* (*original)(CvAINavalEscortedOperation*, CvUnit*), CvAINavalEscortedOperation* self, CvUnit* pUnit);CivRegisterBefore<CivHooks::CvAINavalEscortedOperation_FindBestTarget>(host, &BeforeCvAINavalEscortedOperation_FindBestTarget);CivRegisterAfter<CivHooks::CvAINavalEscortedOperation_FindBestTarget>(host, &AfterCvAINavalEscortedOperation_FindBestTarget);CivRegisterReplace<CivHooks::CvAINavalEscortedOperation_FindBestTarget>(host, &ReplaceCvAINavalEscortedOperation_FindBestTarget);

Code

5295/// Find the plot where we want to settle5296CvPlot* CvAINavalEscortedOperation::FindBestTarget(CvUnit* pUnit)5297{5298	return GET_PLAYER(m_eOwner).GetBestSettlePlot(pUnit, true, -1);5299}

Calls

Called by