Bazaar developer reference

CvPlayer::hasBusyCity() const

Defined in
CvPlayer.cpp, line 5391
Class
CvPlayer
Hook name
CivHooks::CvPlayer_hasBusyCity

Hooks

static bool BeforeCvPlayer_hasBusyCity(const CvPlayer* self, bool& result);static void AfterCvPlayer_hasBusyCity(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_hasBusyCity(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_hasBusyCity>(host, &BeforeCvPlayer_hasBusyCity);CivRegisterAfter<CivHooks::CvPlayer_hasBusyCity>(host, &AfterCvPlayer_hasBusyCity);CivRegisterReplace<CivHooks::CvPlayer_hasBusyCity>(host, &ReplaceCvPlayer_hasBusyCity);

Code

5391bool CvPlayer::hasBusyCity() const5392{5393	const CvCity* pLoopCity;5394	int iLoop;53955396	for(pLoopCity = firstCity(&iLoop); pLoopCity; pLoopCity = nextCity(&iLoop))5397	{5398		if(pLoopCity->IsBusy())5399		{5400			return true;5401		}5402	}54035404	return false;5405}

Calls

Called by