Bazaar developer reference

CvPlayer::hasBusyUnit() const

Defined in
CvPlayer.cpp, line 5374
Class
CvPlayer
Hook name
CivHooks::CvPlayer_hasBusyUnit

Hooks

static bool BeforeCvPlayer_hasBusyUnit(const CvPlayer* self, bool& result);static void AfterCvPlayer_hasBusyUnit(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_hasBusyUnit(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_hasBusyUnit>(host, &BeforeCvPlayer_hasBusyUnit);CivRegisterAfter<CivHooks::CvPlayer_hasBusyUnit>(host, &AfterCvPlayer_hasBusyUnit);CivRegisterReplace<CivHooks::CvPlayer_hasBusyUnit>(host, &ReplaceCvPlayer_hasBusyUnit);

Code

5374bool CvPlayer::hasBusyUnit() const5375{5376	const CvUnit* pLoopUnit;5377	int iLoop;53785379	for(pLoopUnit = firstUnit(&iLoop); pLoopUnit; pLoopUnit = nextUnit(&iLoop))5380	{5381		if(pLoopUnit->IsBusy())5382		{5383			return true;5384		}5385	}53865387	return false;5388}

Calls

Called by