Bazaar developer reference

CvGame::countCivTeamsEverAlive() const

Defined in
CvGame.cpp, line 3861
Class
CvGame
Hook name
CivHooks::CvGame_countCivTeamsEverAlive

Hooks

static bool BeforeCvGame_countCivTeamsEverAlive(const CvGame* self, int& result);static void AfterCvGame_countCivTeamsEverAlive(const CvGame* self, int& result);static int ReplaceCvGame_countCivTeamsEverAlive(int (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_countCivTeamsEverAlive>(host, &BeforeCvGame_countCivTeamsEverAlive);CivRegisterAfter<CivHooks::CvGame_countCivTeamsEverAlive>(host, &AfterCvGame_countCivTeamsEverAlive);CivRegisterReplace<CivHooks::CvGame_countCivTeamsEverAlive>(host, &ReplaceCvGame_countCivTeamsEverAlive);

Code

3861int CvGame::countCivTeamsEverAlive() const3862{3863	int iCount;3864	int iI;38653866	iCount = 0;38673868	for(iI = 0; iI < MAX_CIV_TEAMS; iI++)3869	{3870		if(GET_TEAM((TeamTypes)iI).isEverAlive())3871		{3872			iCount++;3873		}3874	}38753876	return iCount;3877}

Calls

Called by