Bazaar developer reference

CvPlayer::hasBusyUnitOrCity() const

Defined in
CvPlayer.cpp, line 5425
Class
CvPlayer
Hook name
CivHooks::CvPlayer_hasBusyUnitOrCity

Hooks

static bool BeforeCvPlayer_hasBusyUnitOrCity(const CvPlayer* self, bool& result);static void AfterCvPlayer_hasBusyUnitOrCity(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_hasBusyUnitOrCity(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_hasBusyUnitOrCity>(host, &BeforeCvPlayer_hasBusyUnitOrCity);CivRegisterAfter<CivHooks::CvPlayer_hasBusyUnitOrCity>(host, &AfterCvPlayer_hasBusyUnitOrCity);CivRegisterReplace<CivHooks::CvPlayer_hasBusyUnitOrCity>(host, &ReplaceCvPlayer_hasBusyUnitOrCity);

Code

5425bool CvPlayer::hasBusyUnitOrCity() const5426{5427	if(hasBusyUnit())5428		return true;5429	return hasBusyCity();5430}

Calls

Called by