Bazaar developer reference

CvMinorCivAI::IsWaryOfTeam(TeamTypes) const

Defined in
CvMinorCivAI.cpp, line 10529
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_IsWaryOfTeam

Hooks

static bool BeforeCvMinorCivAI_IsWaryOfTeam(const CvMinorCivAI* self, TeamTypes eTeam, bool& result);static void AfterCvMinorCivAI_IsWaryOfTeam(const CvMinorCivAI* self, TeamTypes eTeam, bool& result);static bool ReplaceCvMinorCivAI_IsWaryOfTeam(bool (*original)(const CvMinorCivAI*, TeamTypes), const CvMinorCivAI* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvMinorCivAI_IsWaryOfTeam>(host, &BeforeCvMinorCivAI_IsWaryOfTeam);CivRegisterAfter<CivHooks::CvMinorCivAI_IsWaryOfTeam>(host, &AfterCvMinorCivAI_IsWaryOfTeam);CivRegisterReplace<CivHooks::CvMinorCivAI_IsWaryOfTeam>(host, &ReplaceCvMinorCivAI_IsWaryOfTeam);

Code

10528// Wary of eTeam?10529bool CvMinorCivAI::IsWaryOfTeam(TeamTypes eTeam) const10530{10531	CvAssertMsg(eTeam >= 0, "eTeam is expected to be non-negative (invalid Index)");10532	CvAssertMsg(eTeam < MAX_TEAMS, "eTeam is expected to be within maximum bounds (invalid Index)");10533	if(eTeam < 0 || eTeam >= MAX_TEAMS) return false;1053410535	return m_abWaryOfTeam[eTeam];10536}

Called by