Bazaar developer reference

CvTeam::isAggressor(TeamTypes) const

Defined in
CvTeam.cpp, line 3854
Class
CvTeam
Hook name
CivHooks::CvTeam_isAggressor

Hooks

static bool BeforeCvTeam_isAggressor(const CvTeam* self, TeamTypes eIndex, bool& result);static void AfterCvTeam_isAggressor(const CvTeam* self, TeamTypes eIndex, bool& result);static bool ReplaceCvTeam_isAggressor(bool (*original)(const CvTeam*, TeamTypes), const CvTeam* self, TeamTypes eIndex);CivRegisterBefore<CivHooks::CvTeam_isAggressor>(host, &BeforeCvTeam_isAggressor);CivRegisterAfter<CivHooks::CvTeam_isAggressor>(host, &AfterCvTeam_isAggressor);CivRegisterReplace<CivHooks::CvTeam_isAggressor>(host, &ReplaceCvTeam_isAggressor);

Code

3854bool CvTeam::isAggressor(TeamTypes eIndex) const3855{3856	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");3857	CvAssertMsg(eIndex < MAX_TEAMS, "eIndex is expected to be within maximum bounds (invalid Index)");3858	return (isAtWar(eIndex) && m_abAggressorPacifier[eIndex]);3859}

Calls

Called by