Bazaar developer reference

CvGame::countNumHumanGameTurnActive()

Defined in
CvGame.cpp, line 4793
Class
CvGame
Hook name
CivHooks::CvGame_countNumHumanGameTurnActive

Hooks

static bool BeforeCvGame_countNumHumanGameTurnActive(CvGame* self, int& result);static void AfterCvGame_countNumHumanGameTurnActive(CvGame* self, int& result);static int ReplaceCvGame_countNumHumanGameTurnActive(int (*original)(CvGame*), CvGame* self);CivRegisterBefore<CivHooks::CvGame_countNumHumanGameTurnActive>(host, &BeforeCvGame_countNumHumanGameTurnActive);CivRegisterAfter<CivHooks::CvGame_countNumHumanGameTurnActive>(host, &AfterCvGame_countNumHumanGameTurnActive);CivRegisterReplace<CivHooks::CvGame_countNumHumanGameTurnActive>(host, &ReplaceCvGame_countNumHumanGameTurnActive);

Code

4793int CvGame::countNumHumanGameTurnActive()4794{4795	int iCount;4796	int iI;47974798	iCount = 0;47994800	for(iI = 0; iI < MAX_CIV_PLAYERS; iI++)4801	{4802		if(GET_PLAYER((PlayerTypes)iI).isHuman())4803		{4804			if(GET_PLAYER((PlayerTypes)iI).isTurnActive())4805			{4806				iCount++;4807			}4808		}4809	}48104811	return iCount;4812}

Calls

Called by