Bazaar developer reference

CvTeam::isPacifier(TeamTypes) const

Defined in
CvTeam.cpp, line 3862
Class
CvTeam
Hook name
CivHooks::CvTeam_isPacifier

Hooks

static bool BeforeCvTeam_isPacifier(const CvTeam* self, TeamTypes eIndex, bool& result);static void AfterCvTeam_isPacifier(const CvTeam* self, TeamTypes eIndex, bool& result);static bool ReplaceCvTeam_isPacifier(bool (*original)(const CvTeam*, TeamTypes), const CvTeam* self, TeamTypes eIndex);CivRegisterBefore<CivHooks::CvTeam_isPacifier>(host, &BeforeCvTeam_isPacifier);CivRegisterAfter<CivHooks::CvTeam_isPacifier>(host, &AfterCvTeam_isPacifier);CivRegisterReplace<CivHooks::CvTeam_isPacifier>(host, &ReplaceCvTeam_isPacifier);

Code

3862bool CvTeam::isPacifier(TeamTypes eIndex) const3863{3864	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");3865	CvAssertMsg(eIndex < MAX_TEAMS, "eIndex is expected to be within maximum bounds (invalid Index)");3866	return (!isAtWar(eIndex) && m_abAggressorPacifier[eIndex]);3867}

Calls