Bazaar developer reference

CvDllPlayer::IsBarbarian() const

Defined in
CvDllPlayer.cpp, line 119
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_IsBarbarian

Hooks

static bool BeforeCvDllPlayer_IsBarbarian(const CvDllPlayer* self, bool& result);static void AfterCvDllPlayer_IsBarbarian(const CvDllPlayer* self, bool& result);static bool ReplaceCvDllPlayer_IsBarbarian(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_IsBarbarian::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_IsBarbarian);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_IsBarbarian::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_IsBarbarian);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_IsBarbarian::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_IsBarbarian);

Code

119bool CvDllPlayer::IsBarbarian() const120{121	return m_pPlayer->isBarbarian();122}

Calls