Bazaar developer reference

CvMinorCivAI::IsFriends(PlayerTypes)

Defined in
CvMinorCivAI.cpp, line 6661
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_IsFriends

Hooks

static bool BeforeCvMinorCivAI_IsFriends(CvMinorCivAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvMinorCivAI_IsFriends(CvMinorCivAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvMinorCivAI_IsFriends(bool (*original)(CvMinorCivAI*, PlayerTypes), CvMinorCivAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvMinorCivAI_IsFriends>(host, &BeforeCvMinorCivAI_IsFriends);CivRegisterAfter<CivHooks::CvMinorCivAI_IsFriends>(host, &AfterCvMinorCivAI_IsFriends);CivRegisterReplace<CivHooks::CvMinorCivAI_IsFriends>(host, &ReplaceCvMinorCivAI_IsFriends);

Code

6660/// Is ePlayer Friends with this minor?6661bool CvMinorCivAI::IsFriends(PlayerTypes ePlayer)6662{6663	return IsFriendshipAboveFriendsThreshold(GetEffectiveFriendshipWithMajor(ePlayer));6664}

Calls

Called by