Bazaar developer reference

CvMinorCivAI::IsAllies(PlayerTypes) const

Defined in
CvMinorCivAI.cpp, line 6655
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_IsAllies

Hooks

static bool BeforeCvMinorCivAI_IsAllies(const CvMinorCivAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvMinorCivAI_IsAllies(const CvMinorCivAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvMinorCivAI_IsAllies(bool (*original)(const CvMinorCivAI*, PlayerTypes), const CvMinorCivAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvMinorCivAI_IsAllies>(host, &BeforeCvMinorCivAI_IsAllies);CivRegisterAfter<CivHooks::CvMinorCivAI_IsAllies>(host, &AfterCvMinorCivAI_IsAllies);CivRegisterReplace<CivHooks::CvMinorCivAI_IsAllies>(host, &ReplaceCvMinorCivAI_IsAllies);

Code

6654/// Is ePlayer Allies with this minor?6655bool CvMinorCivAI::IsAllies(PlayerTypes ePlayer) const6656{6657	return m_eAlly == ePlayer;6658}

Called by