Bazaar developer reference

CvTeam::setForcePeace(TeamTypes, bool)

Defined in
CvTeam.cpp, line 4433
Class
CvTeam
Hook name
CivHooks::CvTeam_setForcePeace

Hooks

static bool BeforeCvTeam_setForcePeace(CvTeam* self, TeamTypes eIndex, bool bNewValue);static void AfterCvTeam_setForcePeace(CvTeam* self, TeamTypes eIndex, bool bNewValue);static void ReplaceCvTeam_setForcePeace(void (*original)(CvTeam*, TeamTypes, bool), CvTeam* self, TeamTypes eIndex, bool bNewValue);CivRegisterBefore<CivHooks::CvTeam_setForcePeace>(host, &BeforeCvTeam_setForcePeace);CivRegisterAfter<CivHooks::CvTeam_setForcePeace>(host, &AfterCvTeam_setForcePeace);CivRegisterReplace<CivHooks::CvTeam_setForcePeace>(host, &ReplaceCvTeam_setForcePeace);

Code

4433void CvTeam::setForcePeace(TeamTypes eIndex, bool bNewValue)4434{4435	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");4436	CvAssertMsg(eIndex < MAX_TEAMS, "eIndex is expected to be within maximum bounds (invalid Index)");4437	m_abForcePeace[eIndex] = bNewValue;4438}

Calls

Called by