Bazaar developer reference

CvPlayer::getBusyCity() const

Defined in
CvPlayer.cpp, line 5408
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getBusyCity

Hooks

static bool BeforeCvPlayer_getBusyCity(const CvPlayer* self, const CvCity*& result);static void AfterCvPlayer_getBusyCity(const CvPlayer* self, const CvCity*& result);static const CvCity* ReplaceCvPlayer_getBusyCity(const CvCity* (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_getBusyCity>(host, &BeforeCvPlayer_getBusyCity);CivRegisterAfter<CivHooks::CvPlayer_getBusyCity>(host, &AfterCvPlayer_getBusyCity);CivRegisterReplace<CivHooks::CvPlayer_getBusyCity>(host, &ReplaceCvPlayer_getBusyCity);

Code

5408const CvCity* CvPlayer::getBusyCity() const5409{5410	const CvCity* pLoopCity;5411	int iLoop;54125413	for(pLoopCity = firstCity(&iLoop); pLoopCity; pLoopCity = nextCity(&iLoop))5414	{5415		if(pLoopCity->IsBusy())5416		{5417			return pLoopCity;5418		}5419	}54205421	return false;5422}

Calls