Bazaar developer reference

CvTeam::IsHasDefensivePact(TeamTypes) const

Defined in
CvTeam.cpp, line 4294
Class
CvTeam
Hook name
CivHooks::CvTeam_IsHasDefensivePact

Hooks

static bool BeforeCvTeam_IsHasDefensivePact(const CvTeam* self, TeamTypes eIndex, bool& result);static void AfterCvTeam_IsHasDefensivePact(const CvTeam* self, TeamTypes eIndex, bool& result);static bool ReplaceCvTeam_IsHasDefensivePact(bool (*original)(const CvTeam*, TeamTypes), const CvTeam* self, TeamTypes eIndex);CivRegisterBefore<CivHooks::CvTeam_IsHasDefensivePact>(host, &BeforeCvTeam_IsHasDefensivePact);CivRegisterAfter<CivHooks::CvTeam_IsHasDefensivePact>(host, &AfterCvTeam_IsHasDefensivePact);CivRegisterReplace<CivHooks::CvTeam_IsHasDefensivePact>(host, &ReplaceCvTeam_IsHasDefensivePact);

Code

4294bool CvTeam::IsHasDefensivePact(TeamTypes eIndex) const4295{4296	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");4297	CvAssertMsg(eIndex < MAX_TEAMS, "eIndex is expected to be within maximum bounds (invalid Index)");4298	return m_abDefensivePact[eIndex];4299}

Calls

Called by