Bazaar developer reference

CvDllCity::IsWorkingPlot(ICvPlot1 *) const

Defined in
CvDllCity.cpp, line 186
Class
CvDllCity
Hook name
CivHooks::CvDllCity_IsWorkingPlot

Hooks

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

Code

186bool CvDllCity::IsWorkingPlot(ICvPlot1* pPlot) const187{188	CvPlot* pkPlot = (NULL != pPlot)? static_cast<CvDllPlot*>(pPlot)->GetInstance() : NULL;189	return (NULL != pkPlot)? m_pCity->GetCityCitizens()->IsWorkingPlot(pkPlot) : NULL;190}

Calls