Bazaar developer reference

CvTeam::changeVictoryPoints(int)

Defined in
CvTeam.cpp, line 5238
Class
CvTeam
Hook name
CivHooks::CvTeam_changeVictoryPoints

Hooks

static bool BeforeCvTeam_changeVictoryPoints(CvTeam* self, int iChange);static void AfterCvTeam_changeVictoryPoints(CvTeam* self, int iChange);static void ReplaceCvTeam_changeVictoryPoints(void (*original)(CvTeam*, int), CvTeam* self, int iChange);CivRegisterBefore<CivHooks::CvTeam_changeVictoryPoints>(host, &BeforeCvTeam_changeVictoryPoints);CivRegisterAfter<CivHooks::CvTeam_changeVictoryPoints>(host, &AfterCvTeam_changeVictoryPoints);CivRegisterReplace<CivHooks::CvTeam_changeVictoryPoints>(host, &ReplaceCvTeam_changeVictoryPoints);

Code

5238void CvTeam::changeVictoryPoints(int iChange)5239{5240	if(iChange != 0)5241	{5242		m_iVictoryPoints += iChange;5243	}52445245	// Right now there's no reason VPs should ever be negative5246	CvAssert(m_iVictoryPoints >= 0);5247}

Called by