Bazaar developer reference

CvPlayer::HasTech(TechTypes) const

Defined in
CvPlayer.cpp, line 28356
Class
CvPlayer
Hook name
CivHooks::CvPlayer_HasTech

Hooks

static bool BeforeCvPlayer_HasTech(const CvPlayer* self, TechTypes iTechType, bool& result);static void AfterCvPlayer_HasTech(const CvPlayer* self, TechTypes iTechType, bool& result);static bool ReplaceCvPlayer_HasTech(bool (*original)(const CvPlayer*, TechTypes), const CvPlayer* self, TechTypes iTechType);CivRegisterBefore<CivHooks::CvPlayer_HasTech>(host, &BeforeCvPlayer_HasTech);CivRegisterAfter<CivHooks::CvPlayer_HasTech>(host, &AfterCvPlayer_HasTech);CivRegisterReplace<CivHooks::CvPlayer_HasTech>(host, &ReplaceCvPlayer_HasTech);

Code

28356bool CvPlayer::HasTech(TechTypes iTechType) const28357{28358	return GET_TEAM(getTeam()).GetTeamTechs()->HasTech(iTechType);28359}

Calls

Called by