Bazaar developer reference

CvDllPlayer::SetTurnActive(bool, bool)

Defined in
CvDllPlayer.cpp, line 203
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_SetTurnActive

Hooks

static bool BeforeCvDllPlayer_SetTurnActive(CvDllPlayer* self, bool bNewValue, bool bDoTurn);static void AfterCvDllPlayer_SetTurnActive(CvDllPlayer* self, bool bNewValue, bool bDoTurn);static void ReplaceCvDllPlayer_SetTurnActive(void (*original)(CvDllPlayer*, bool, bool), CvDllPlayer* self, bool bNewValue, bool bDoTurn);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_SetTurnActive::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_SetTurnActive);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_SetTurnActive::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_SetTurnActive);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_SetTurnActive::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_SetTurnActive);

Code

203void CvDllPlayer::SetTurnActive(bool bNewValue, bool bDoTurn)204{205	m_pPlayer->setTurnActive(bNewValue, bDoTurn);206}

Calls