Bazaar developer reference

CvTeam::changeBorderObstacleCount(int)

Defined in
CvTeam.cpp, line 3338
Class
CvTeam
Hook name
CivHooks::CvTeam_changeBorderObstacleCount

Hooks

static bool BeforeCvTeam_changeBorderObstacleCount(CvTeam* self, int iChange);static void AfterCvTeam_changeBorderObstacleCount(CvTeam* self, int iChange);static void ReplaceCvTeam_changeBorderObstacleCount(void (*original)(CvTeam*, int), CvTeam* self, int iChange);CivRegisterBefore<CivHooks::CvTeam_changeBorderObstacleCount>(host, &BeforeCvTeam_changeBorderObstacleCount);CivRegisterAfter<CivHooks::CvTeam_changeBorderObstacleCount>(host, &AfterCvTeam_changeBorderObstacleCount);CivRegisterReplace<CivHooks::CvTeam_changeBorderObstacleCount>(host, &ReplaceCvTeam_changeBorderObstacleCount);

Code

3338void CvTeam::changeBorderObstacleCount(int iChange)3339{3340	if(iChange != 0)3341	{3342		m_iBorderObstacleCount = (m_iBorderObstacleCount + iChange);3343		CvAssert(getBorderObstacleCount() >= 0);3344	}3345}

Called by