Bazaar developer reference

CvDllPlayer::IsOption(PlayerOptionTypes) const

Defined in
CvDllPlayer.cpp, line 253
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_IsOption

Hooks

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

Code

253bool CvDllPlayer::IsOption(PlayerOptionTypes eIndex) const254{255	return m_pPlayer->isOption(eIndex);256}

Calls