Bazaar developer reference

CvPlayer::HasReachedEra(EraTypes) const

Defined in
CvPlayer.cpp, line 28184
Class
CvPlayer
Hook name
CivHooks::CvPlayer_HasReachedEra

Hooks

static bool BeforeCvPlayer_HasReachedEra(const CvPlayer* self, EraTypes iEraType, bool& result);static void AfterCvPlayer_HasReachedEra(const CvPlayer* self, EraTypes iEraType, bool& result);static bool ReplaceCvPlayer_HasReachedEra(bool (*original)(const CvPlayer*, EraTypes), const CvPlayer* self, EraTypes iEraType);CivRegisterBefore<CivHooks::CvPlayer_HasReachedEra>(host, &BeforeCvPlayer_HasReachedEra);CivRegisterAfter<CivHooks::CvPlayer_HasReachedEra>(host, &AfterCvPlayer_HasReachedEra);CivRegisterReplace<CivHooks::CvPlayer_HasReachedEra>(host, &ReplaceCvPlayer_HasReachedEra);

Code

28184bool CvPlayer::HasReachedEra(EraTypes iEraType) const28185{28186	return (GET_TEAM(getTeam()).GetCurrentEra() >= iEraType);28187}

Calls

Called by