Bazaar developer reference

CvPlayer::HasTrait(TraitTypes) const

Defined in
CvPlayer.cpp, line 28473
Class
CvPlayer
Hook name
CivHooks::CvPlayer_HasTrait

Hooks

static bool BeforeCvPlayer_HasTrait(const CvPlayer* self, TraitTypes eTrait, bool& result);static void AfterCvPlayer_HasTrait(const CvPlayer* self, TraitTypes eTrait, bool& result);static bool ReplaceCvPlayer_HasTrait(bool (*original)(const CvPlayer*, TraitTypes), const CvPlayer* self, TraitTypes eTrait);CivRegisterBefore<CivHooks::CvPlayer_HasTrait>(host, &BeforeCvPlayer_HasTrait);CivRegisterAfter<CivHooks::CvPlayer_HasTrait>(host, &AfterCvPlayer_HasTrait);CivRegisterReplace<CivHooks::CvPlayer_HasTrait>(host, &ReplaceCvPlayer_HasTrait);

Code

28473bool CvPlayer::HasTrait(TraitTypes eTrait) const28474{28475	return GetPlayerTraits()->HasTrait(eTrait);28476}

Calls

Called by