Bazaar developer reference

CvDllGame::CyclePlotUnits(ICvPlot1 *, bool, bool, int)

Defined in
CvDllGame.cpp, line 132
Class
CvDllGame
Hook name
CivHooks::CvDllGame_CyclePlotUnits

Hooks

static bool BeforeCvDllGame_CyclePlotUnits(CvDllGame* self, ICvPlot1* pPlot, bool bForward, bool bAuto, int iCount, bool& result);static void AfterCvDllGame_CyclePlotUnits(CvDllGame* self, ICvPlot1* pPlot, bool bForward, bool bAuto, int iCount, bool& result);static bool ReplaceCvDllGame_CyclePlotUnits(bool (*original)(CvDllGame*, ICvPlot1*, bool, bool, int), CvDllGame* self, ICvPlot1* pPlot, bool bForward, bool bAuto, int iCount);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_CyclePlotUnits::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGame_CyclePlotUnits);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_CyclePlotUnits::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGame_CyclePlotUnits);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_CyclePlotUnits::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGame_CyclePlotUnits);

Code

132bool CvDllGame::CyclePlotUnits(ICvPlot1* pPlot, bool bForward, bool bAuto, int iCount)133{134	CvPlot* pkPlot = (NULL != pPlot)? static_cast<CvDllPlot*>(pPlot)->GetInstance() : NULL;135	return m_pGame->cyclePlotUnits(pkPlot, bForward, bAuto, iCount);136}

Calls