Bazaar developer reference

CvDllGame::CountHumanPlayersAlive() const

Defined in
CvDllGame.cpp, line 122
Class
CvDllGame
Hook name
CivHooks::CvDllGame_CountHumanPlayersAlive

Hooks

static bool BeforeCvDllGame_CountHumanPlayersAlive(const CvDllGame* self, int& result);static void AfterCvDllGame_CountHumanPlayersAlive(const CvDllGame* self, int& result);static int ReplaceCvDllGame_CountHumanPlayersAlive(int (*original)(const CvDllGame*), const CvDllGame* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_CountHumanPlayersAlive::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGame_CountHumanPlayersAlive);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_CountHumanPlayersAlive::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGame_CountHumanPlayersAlive);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_CountHumanPlayersAlive::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGame_CountHumanPlayersAlive);

Code

122int CvDllGame::CountHumanPlayersAlive() const123{124	return m_pGame->countHumanPlayersAlive();125}

Calls