Bazaar developer reference

CvCity::isTeamWondersMaxed() const

Defined in
CvCity.cpp, line 2601
Class
CvCity
Hook name
CivHooks::CvCity_isTeamWondersMaxed

Hooks

static bool BeforeCvCity_isTeamWondersMaxed(const CvCity* self, bool& result);static void AfterCvCity_isTeamWondersMaxed(const CvCity* self, bool& result);static bool ReplaceCvCity_isTeamWondersMaxed(bool (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_isTeamWondersMaxed>(host, &BeforeCvCity_isTeamWondersMaxed);CivRegisterAfter<CivHooks::CvCity_isTeamWondersMaxed>(host, &AfterCvCity_isTeamWondersMaxed);CivRegisterReplace<CivHooks::CvCity_isTeamWondersMaxed>(host, &ReplaceCvCity_isTeamWondersMaxed);

Code

2601bool CvCity::isTeamWondersMaxed() const2602{2603	VALIDATE_OBJECT2604	if(GC.getGame().isOption(GAMEOPTION_ONE_CITY_CHALLENGE) && isHuman())2605	{2606		return false;2607	}26082609	if(GC.getMAX_TEAM_WONDERS_PER_CITY() == -1)2610	{2611		return false;2612	}26132614	if(getNumTeamWonders() >= GC.getMAX_TEAM_WONDERS_PER_CITY())2615	{2616		return true;2617	}26182619	return false;2620}

Calls

Called by