Bazaar developer reference

CvDllPlot::IsTradeRoute(PlayerTypes) const

Defined in
CvDllPlot.cpp, line 144
Class
CvDllPlot
Hook name
CivHooks::CvDllPlot_IsTradeRoute

Hooks

static bool BeforeCvDllPlot_IsTradeRoute(const CvDllPlot* self, PlayerTypes ePlayer, bool& result);static void AfterCvDllPlot_IsTradeRoute(const CvDllPlot* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDllPlot_IsTradeRoute(bool (*original)(const CvDllPlot*, PlayerTypes), const CvDllPlot* self, PlayerTypes ePlayer);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_IsTradeRoute::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlot_IsTradeRoute);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_IsTradeRoute::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlot_IsTradeRoute);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_IsTradeRoute::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlot_IsTradeRoute);

Code

144bool CvDllPlot::IsTradeRoute(PlayerTypes ePlayer) const145{146	return m_pPlot->IsTradeRoute(ePlayer);147}

Calls