Bazaar developer reference

CvDllMap::GetPlot(int, int) const

Defined in
CvDllMap.cpp, line 167
Class
CvDllMap
Hook name
CivHooks::CvDllMap_GetPlot

Hooks

static bool BeforeCvDllMap_GetPlot(const CvDllMap* self, int iX, int iY, ICvPlot1*& result);static void AfterCvDllMap_GetPlot(const CvDllMap* self, int iX, int iY, ICvPlot1*& result);static ICvPlot1* ReplaceCvDllMap_GetPlot(ICvPlot1* (*original)(const CvDllMap*, int, int), const CvDllMap* self, int iX, int iY);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllMap_GetPlot::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllMap_GetPlot);host->RegisterHook(host->pluginIndex, CivHooks::CvDllMap_GetPlot::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllMap_GetPlot);host->RegisterHook(host->pluginIndex, CivHooks::CvDllMap_GetPlot::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllMap_GetPlot);

Code

167ICvPlot1* CvDllMap::GetPlot(int iX, int iY) const168{169	if (m_pMap->numPlots() != 0)170	{171		CvPlot* pkPlot = m_pMap->plot(iX, iY);172		return (NULL != pkPlot)? new CvDllPlot(pkPlot) : NULL;173	}174	return NULL;175}

Calls