Bazaar developer reference

CvGame::isInAdvancedStart() const

Defined in
CvGame.cpp, line 7513
Class
CvGame
Hook name
CivHooks::CvGame_isInAdvancedStart

Hooks

static bool BeforeCvGame_isInAdvancedStart(const CvGame* self, bool& result);static void AfterCvGame_isInAdvancedStart(const CvGame* self, bool& result);static bool ReplaceCvGame_isInAdvancedStart(bool (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_isInAdvancedStart>(host, &BeforeCvGame_isInAdvancedStart);CivRegisterAfter<CivHooks::CvGame_isInAdvancedStart>(host, &AfterCvGame_isInAdvancedStart);CivRegisterReplace<CivHooks::CvGame_isInAdvancedStart>(host, &ReplaceCvGame_isInAdvancedStart);

Code

7513bool CvGame::isInAdvancedStart() const7514{7515	for(int iPlayer = 0; iPlayer < MAX_PLAYERS; ++iPlayer)7516	{7517		if((GET_PLAYER((PlayerTypes)iPlayer).getAdvancedStartPoints() >= 0) && GET_PLAYER((PlayerTypes)iPlayer).isHuman())7518		{7519			return true;7520		}7521	}75227523	return false;7524}

Calls

Called by