Bazaar developer reference

CvDllGame::GetActivePlayer()

Defined in
CvDllGame.cpp, line 98
Class
CvDllGame
Hook name
CivHooks::CvDllGame_GetActivePlayer

Hooks

static bool BeforeCvDllGame_GetActivePlayer(CvDllGame* self, PlayerTypes& result);static void AfterCvDllGame_GetActivePlayer(CvDllGame* self, PlayerTypes& result);static PlayerTypes ReplaceCvDllGame_GetActivePlayer(PlayerTypes (*original)(CvDllGame*), CvDllGame* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_GetActivePlayer::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGame_GetActivePlayer);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_GetActivePlayer::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGame_GetActivePlayer);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_GetActivePlayer::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGame_GetActivePlayer);

Code

98PlayerTypes CvDllGame::GetActivePlayer()99{100	return m_pGame->getActivePlayer();101}

Calls