Bazaar developer reference

CvUnit::GetMissionAIPlot()

Defined in
CvUnit.cpp, line 23607
Class
CvUnit
Hook name
CivHooks::CvUnit_GetMissionAIPlot

Hooks

static bool BeforeCvUnit_GetMissionAIPlot(CvUnit* self, CvPlot*& result);static void AfterCvUnit_GetMissionAIPlot(CvUnit* self, CvPlot*& result);static CvPlot* ReplaceCvUnit_GetMissionAIPlot(CvPlot* (*original)(CvUnit*), CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_GetMissionAIPlot>(host, &BeforeCvUnit_GetMissionAIPlot);CivRegisterAfter<CivHooks::CvUnit_GetMissionAIPlot>(host, &AfterCvUnit_GetMissionAIPlot);CivRegisterReplace<CivHooks::CvUnit_GetMissionAIPlot>(host, &ReplaceCvUnit_GetMissionAIPlot);

Code

23606/// The plot saved with the mission AI data23607CvPlot* CvUnit::GetMissionAIPlot()23608{23609	VALIDATE_OBJECT23610	return GC.getMap().plotCheckInvalid(m_iMissionAIX, m_iMissionAIY);23611}

Calls

Called by