Bazaar developer reference

CvArmyAI::GetGoalPlot() const

Defined in
CvArmyAI.cpp, line 610
Class
CvArmyAI
Hook name
CivHooks::CvArmyAI_GetGoalPlot

Hooks

static bool BeforeCvArmyAI_GetGoalPlot(const CvArmyAI* self, CvPlot*& result);static void AfterCvArmyAI_GetGoalPlot(const CvArmyAI* self, CvPlot*& result);static CvPlot* ReplaceCvArmyAI_GetGoalPlot(CvPlot* (*original)(const CvArmyAI*), const CvArmyAI* self);CivRegisterBefore<CivHooks::CvArmyAI_GetGoalPlot>(host, &BeforeCvArmyAI_GetGoalPlot);CivRegisterAfter<CivHooks::CvArmyAI_GetGoalPlot>(host, &AfterCvArmyAI_GetGoalPlot);CivRegisterReplace<CivHooks::CvArmyAI_GetGoalPlot>(host, &ReplaceCvArmyAI_GetGoalPlot);

Code

609/// Retrieve target plot for army movement610CvPlot* CvArmyAI::GetGoalPlot() const611{612	return GC.getMap().plotCheckInvalid(m_iGoalX, m_iGoalY);613}

Calls

Called by