Bazaar developer reference

CvGame::isTeamGame() const

Defined in
CvGame.cpp, line 4302
Class
CvGame
Hook name
CivHooks::CvGame_isTeamGame

Hooks

static bool BeforeCvGame_isTeamGame(const CvGame* self, bool& result);static void AfterCvGame_isTeamGame(const CvGame* self, bool& result);static bool ReplaceCvGame_isTeamGame(bool (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_isTeamGame>(host, &BeforeCvGame_isTeamGame);CivRegisterAfter<CivHooks::CvGame_isTeamGame>(host, &AfterCvGame_isTeamGame);CivRegisterReplace<CivHooks::CvGame_isTeamGame>(host, &ReplaceCvGame_isTeamGame);

Code

4302bool CvGame::isTeamGame() const4303{4304	CvAssert(countCivPlayersAlive() >= countCivTeamsAlive());4305	return (countCivPlayersAlive() > countCivTeamsAlive());4306}

Calls

Called by