Bazaar developer reference

CvDllPlot::GetCenterUnit()

Defined in
CvDllPlot.cpp, line 307
Class
CvDllPlot
Hook name
CivHooks::CvDllPlot_GetCenterUnit

Hooks

static bool BeforeCvDllPlot_GetCenterUnit(CvDllPlot* self, ICvUnit1*& result);static void AfterCvDllPlot_GetCenterUnit(CvDllPlot* self, ICvUnit1*& result);static ICvUnit1* ReplaceCvDllPlot_GetCenterUnit(ICvUnit1* (*original)(CvDllPlot*), CvDllPlot* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetCenterUnit::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlot_GetCenterUnit);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetCenterUnit::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlot_GetCenterUnit);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetCenterUnit::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlot_GetCenterUnit);

Code

307ICvUnit1* CvDllPlot::GetCenterUnit()308{309	CvUnit* pkUnit = m_pPlot->getCenterUnit().pointer();310	return (NULL != pkUnit)? new CvDllUnit(pkUnit) : NULL;311}

Calls