Bazaar developer reference

CvPlayer::IsInEra(EraTypes) const

Defined in
CvPlayer.cpp, line 28179
Class
CvPlayer
Hook name
CivHooks::CvPlayer_IsInEra

Hooks

static bool BeforeCvPlayer_IsInEra(const CvPlayer* self, EraTypes iEraType, bool& result);static void AfterCvPlayer_IsInEra(const CvPlayer* self, EraTypes iEraType, bool& result);static bool ReplaceCvPlayer_IsInEra(bool (*original)(const CvPlayer*, EraTypes), const CvPlayer* self, EraTypes iEraType);CivRegisterBefore<CivHooks::CvPlayer_IsInEra>(host, &BeforeCvPlayer_IsInEra);CivRegisterAfter<CivHooks::CvPlayer_IsInEra>(host, &AfterCvPlayer_IsInEra);CivRegisterReplace<CivHooks::CvPlayer_IsInEra>(host, &ReplaceCvPlayer_IsInEra);

Code

28179bool CvPlayer::IsInEra(EraTypes iEraType) const28180{28181	return (GET_TEAM(getTeam()).GetCurrentEra() == iEraType);28182}

Calls

Called by