Bazaar developer reference

CvDllCombatInfo::GetPlot() const

Defined in
CvDllCombatInfo.cpp, line 96
Class
CvDllCombatInfo
Hook name
CivHooks::CvDllCombatInfo_GetPlot

Hooks

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

Code

96ICvPlot1* CvDllCombatInfo::GetPlot() const97{98	CvPlot* pkPlot = m_pCombatInfo->getPlot();99	return (NULL != pkPlot)? new CvDllPlot(pkPlot) : NULL;100}

Calls