Bazaar developer reference

CvDllUnit::GetDeclareWarMove(ICvPlot1 *) const

Defined in
CvDllUnit.cpp, line 301
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_GetDeclareWarMove

Hooks

static bool BeforeCvDllUnit_GetDeclareWarMove(const CvDllUnit* self, ICvPlot1* pPlot, TeamTypes& result);static void AfterCvDllUnit_GetDeclareWarMove(const CvDllUnit* self, ICvPlot1* pPlot, TeamTypes& result);static TeamTypes ReplaceCvDllUnit_GetDeclareWarMove(TeamTypes (*original)(const CvDllUnit*, ICvPlot1*), const CvDllUnit* self, ICvPlot1* pPlot);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetDeclareWarMove::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_GetDeclareWarMove);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetDeclareWarMove::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_GetDeclareWarMove);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetDeclareWarMove::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_GetDeclareWarMove);

Code

301TeamTypes CvDllUnit::GetDeclareWarMove(ICvPlot1* pPlot) const302{303	CvPlot* pkPlot = (NULL != pPlot)? static_cast<CvDllPlot*>(pPlot)->GetInstance() : NULL;304	if(pkPlot != NULL)305		return m_pUnit->GetDeclareWarMove(*pkPlot);306	else307		return NO_TEAM;308}

Calls