Bazaar developer reference

CvDllGame::GetAction(int, bool, bool, bool)

Defined in
CvDllGame.cpp, line 163
Class
CvDllGame
Hook name
CivHooks::CvDllGame_GetAction

Hooks

static bool BeforeCvDllGame_GetAction(CvDllGame* self, int iKeyStroke, bool bAlt, bool bShift, bool bCtrl, int& result);static void AfterCvDllGame_GetAction(CvDllGame* self, int iKeyStroke, bool bAlt, bool bShift, bool bCtrl, int& result);static int ReplaceCvDllGame_GetAction(int (*original)(CvDllGame*, int, bool, bool, bool), CvDllGame* self, int iKeyStroke, bool bAlt, bool bShift, bool bCtrl);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_GetAction::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGame_GetAction);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_GetAction::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGame_GetAction);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_GetAction::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGame_GetAction);

Code

163int CvDllGame::GetAction(int iKeyStroke, bool bAlt, bool bShift, bool bCtrl)164{165	return m_pGame->GetAction(iKeyStroke, bAlt, bShift, bCtrl);166}

Calls