Bazaar developer reference

CvTeam::changeAliveCount(int)

Defined in
CvTeam.cpp, line 2799
Class
CvTeam
Hook name
CivHooks::CvTeam_changeAliveCount

Hooks

static bool BeforeCvTeam_changeAliveCount(CvTeam* self, int iChange);static void AfterCvTeam_changeAliveCount(CvTeam* self, int iChange);static void ReplaceCvTeam_changeAliveCount(void (*original)(CvTeam*, int), CvTeam* self, int iChange);CivRegisterBefore<CivHooks::CvTeam_changeAliveCount>(host, &BeforeCvTeam_changeAliveCount);CivRegisterAfter<CivHooks::CvTeam_changeAliveCount>(host, &AfterCvTeam_changeAliveCount);CivRegisterReplace<CivHooks::CvTeam_changeAliveCount>(host, &ReplaceCvTeam_changeAliveCount);

Code

2799void CvTeam::changeAliveCount(int iChange)2800{2801	m_iAliveCount = (m_iAliveCount + iChange);2802	CvAssert(getAliveCount() >= 0);2803}

Called by