Bazaar developer reference

CvDllPlayer::IsTurnActive() const

Defined in
CvDllPlayer.cpp, line 198
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_IsTurnActive

Hooks

static bool BeforeCvDllPlayer_IsTurnActive(const CvDllPlayer* self, bool& result);static void AfterCvDllPlayer_IsTurnActive(const CvDllPlayer* self, bool& result);static bool ReplaceCvDllPlayer_IsTurnActive(bool (*original)(const CvDllPlayer*), const CvDllPlayer* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_IsTurnActive::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_IsTurnActive);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_IsTurnActive::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_IsTurnActive);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_IsTurnActive::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_IsTurnActive);

Code

198bool CvDllPlayer::IsTurnActive() const199{200	return m_pPlayer->isTurnActive();201}

Calls