Bazaar developer reference

CvDllPlot::GetNeighboringPlot(DirectionTypes) const

Defined in
CvDllPlot.cpp, line 109
Class
CvDllPlot
Hook name
CivHooks::CvDllPlot_GetNeighboringPlot

Hooks

static bool BeforeCvDllPlot_GetNeighboringPlot(const CvDllPlot* self, DirectionTypes eDirection, ICvPlot1*& result);static void AfterCvDllPlot_GetNeighboringPlot(const CvDllPlot* self, DirectionTypes eDirection, ICvPlot1*& result);static ICvPlot1* ReplaceCvDllPlot_GetNeighboringPlot(ICvPlot1* (*original)(const CvDllPlot*, DirectionTypes), const CvDllPlot* self, DirectionTypes eDirection);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetNeighboringPlot::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlot_GetNeighboringPlot);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetNeighboringPlot::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlot_GetNeighboringPlot);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetNeighboringPlot::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlot_GetNeighboringPlot);

Code

109ICvPlot1* CvDllPlot::GetNeighboringPlot(DirectionTypes eDirection) const110{111	CvPlot* pkPlot = m_pPlot->getNeighboringPlot(eDirection);112	return (NULL != pkPlot)? new CvDllPlot(pkPlot) : NULL;113}

Calls