Bazaar developer reference

CvDllCity::Plot() const

Defined in
CvDllCity.cpp, line 102
Class
CvDllCity
Hook name
CivHooks::CvDllCity_Plot

Hooks

static bool BeforeCvDllCity_Plot(const CvDllCity* self, ICvPlot1*& result);static void AfterCvDllCity_Plot(const CvDllCity* self, ICvPlot1*& result);static ICvPlot1* ReplaceCvDllCity_Plot(ICvPlot1* (*original)(const CvDllCity*), const CvDllCity* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllCity_Plot::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllCity_Plot);host->RegisterHook(host->pluginIndex, CivHooks::CvDllCity_Plot::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllCity_Plot);host->RegisterHook(host->pluginIndex, CivHooks::CvDllCity_Plot::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllCity_Plot);

Code

102ICvPlot1* CvDllCity::Plot() const103{104	CvPlot* pkPlot = m_pCity->plot();105	return (NULL != pkPlot)? new CvDllPlot(pkPlot) : NULL;106}

Calls