Bazaar developer reference

CvDllGame::SelectGroup(ICvUnit1 *, bool, bool, bool)

Defined in
CvDllGame.cpp, line 395
Class
CvDllGame
Hook name
CivHooks::CvDllGame_SelectGroup

Hooks

static bool BeforeCvDllGame_SelectGroup(CvDllGame* self, ICvUnit1* pUnit, bool bShift, bool bCtrl, bool bAlt);static void AfterCvDllGame_SelectGroup(CvDllGame* self, ICvUnit1* pUnit, bool bShift, bool bCtrl, bool bAlt);static void ReplaceCvDllGame_SelectGroup(void (*original)(CvDllGame*, ICvUnit1*, bool, bool, bool), CvDllGame* self, ICvUnit1* pUnit, bool bShift, bool bCtrl, bool bAlt);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_SelectGroup::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGame_SelectGroup);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_SelectGroup::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGame_SelectGroup);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_SelectGroup::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGame_SelectGroup);

Code

395void CvDllGame::SelectGroup(ICvUnit1* pUnit, bool bShift, bool bCtrl, bool bAlt)396{397	CvUnit* pkUnit = (NULL != pUnit)? static_cast<CvDllUnit*>(pUnit)->GetInstance() : NULL;398	m_pGame->selectGroup(pkUnit, bShift, bCtrl, bAlt);399}

Calls