Bazaar developer reference

CvMinorCivAI::IsPermanentWar(TeamTypes) const

Defined in
CvMinorCivAI.cpp, line 10508
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_IsPermanentWar

Hooks

static bool BeforeCvMinorCivAI_IsPermanentWar(const CvMinorCivAI* self, TeamTypes eTeam, bool& result);static void AfterCvMinorCivAI_IsPermanentWar(const CvMinorCivAI* self, TeamTypes eTeam, bool& result);static bool ReplaceCvMinorCivAI_IsPermanentWar(bool (*original)(const CvMinorCivAI*, TeamTypes), const CvMinorCivAI* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvMinorCivAI_IsPermanentWar>(host, &BeforeCvMinorCivAI_IsPermanentWar);CivRegisterAfter<CivHooks::CvMinorCivAI_IsPermanentWar>(host, &AfterCvMinorCivAI_IsPermanentWar);CivRegisterReplace<CivHooks::CvMinorCivAI_IsPermanentWar>(host, &ReplaceCvMinorCivAI_IsPermanentWar);

Code

10507/// Permanent War with eTeam?10508bool CvMinorCivAI::IsPermanentWar(TeamTypes eTeam) const10509{10510	CvAssertMsg(eTeam >= 0, "eTeam is expected to be non-negative (invalid Index)");10511	CvAssertMsg(eTeam < MAX_TEAMS, "eTeam is expected to be within maximum bounds (invalid Index)");10512	if(eTeam < 0 || eTeam >= MAX_TEAMS) return false;1051310514	return m_abPermanentWar[eTeam];10515}

Called by