Bazaar developer reference

CvGame::AnyoneHasPantheon() const

Defined in
CvGame.cpp, line 12180
Class
CvGame
Hook name
CivHooks::CvGame_AnyoneHasPantheon

Hooks

static bool BeforeCvGame_AnyoneHasPantheon(const CvGame* self, bool& result);static void AfterCvGame_AnyoneHasPantheon(const CvGame* self, bool& result);static bool ReplaceCvGame_AnyoneHasPantheon(bool (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_AnyoneHasPantheon>(host, &BeforeCvGame_AnyoneHasPantheon);CivRegisterAfter<CivHooks::CvGame_AnyoneHasPantheon>(host, &AfterCvGame_AnyoneHasPantheon);CivRegisterReplace<CivHooks::CvGame_AnyoneHasPantheon>(host, &ReplaceCvGame_AnyoneHasPantheon);

Code

12180bool CvGame::AnyoneHasPantheon() const12181{12182	for (int i = 0; i < MAX_PLAYERS; ++i) {12183		CvPlayer& player = GET_PLAYER(static_cast<PlayerTypes>(i));1218412185		if(player.isAlive() && player.HasPantheon()) {12186			return true;12187		}12188	}1218912190	return false;12191}

Calls

Called by