Bazaar developer reference

CvTeam::isForcePeace(TeamTypes) const

Defined in
CvTeam.cpp, line 4424
Class
CvTeam
Hook name
CivHooks::CvTeam_isForcePeace

Hooks

static bool BeforeCvTeam_isForcePeace(const CvTeam* self, TeamTypes eIndex, bool& result);static void AfterCvTeam_isForcePeace(const CvTeam* self, TeamTypes eIndex, bool& result);static bool ReplaceCvTeam_isForcePeace(bool (*original)(const CvTeam*, TeamTypes), const CvTeam* self, TeamTypes eIndex);CivRegisterBefore<CivHooks::CvTeam_isForcePeace>(host, &BeforeCvTeam_isForcePeace);CivRegisterAfter<CivHooks::CvTeam_isForcePeace>(host, &AfterCvTeam_isForcePeace);CivRegisterReplace<CivHooks::CvTeam_isForcePeace>(host, &ReplaceCvTeam_isForcePeace);

Code

4424bool CvTeam::isForcePeace(TeamTypes eIndex) const4425{4426	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");4427	CvAssertMsg(eIndex < MAX_TEAMS, "eIndex is expected to be within maximum bounds (invalid Index)");4428	return m_abForcePeace[eIndex];4429}

Calls

Called by