Bazaar developer reference

CvPlayer::HasAnyNaturalWonder()

Defined in
CvPlayer.cpp, line 28189
Class
CvPlayer
Hook name
CivHooks::CvPlayer_HasAnyNaturalWonder

Hooks

static bool BeforeCvPlayer_HasAnyNaturalWonder(CvPlayer* self, bool& result);static void AfterCvPlayer_HasAnyNaturalWonder(CvPlayer* self, bool& result);static bool ReplaceCvPlayer_HasAnyNaturalWonder(bool (*original)(CvPlayer*), CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_HasAnyNaturalWonder>(host, &BeforeCvPlayer_HasAnyNaturalWonder);CivRegisterAfter<CivHooks::CvPlayer_HasAnyNaturalWonder>(host, &AfterCvPlayer_HasAnyNaturalWonder);CivRegisterReplace<CivHooks::CvPlayer_HasAnyNaturalWonder>(host, &ReplaceCvPlayer_HasAnyNaturalWonder);

Code

28189bool CvPlayer::HasAnyNaturalWonder()28190{28191	int iLoopCity;28192	for (CvCity* pLoopCity = firstCity(&iLoopCity); pLoopCity != NULL; pLoopCity = nextCity(&iLoopCity)) {28193		if (pLoopCity->HasAnyNaturalWonder()) {28194			return true;28195		}28196	}2819728198	return false;28199}

Calls

Called by