Bazaar developer reference

CvTeam::setVictoryAchieved(VictoryTypes, bool)

Defined in
CvTeam.cpp, line 5203
Class
CvTeam
Hook name
CivHooks::CvTeam_setVictoryAchieved

Hooks

static bool BeforeCvTeam_setVictoryAchieved(CvTeam* self, VictoryTypes eVictory, bool bValue);static void AfterCvTeam_setVictoryAchieved(CvTeam* self, VictoryTypes eVictory, bool bValue);static void ReplaceCvTeam_setVictoryAchieved(void (*original)(CvTeam*, VictoryTypes, bool), CvTeam* self, VictoryTypes eVictory, bool bValue);CivRegisterBefore<CivHooks::CvTeam_setVictoryAchieved>(host, &BeforeCvTeam_setVictoryAchieved);CivRegisterAfter<CivHooks::CvTeam_setVictoryAchieved>(host, &AfterCvTeam_setVictoryAchieved);CivRegisterReplace<CivHooks::CvTeam_setVictoryAchieved>(host, &ReplaceCvTeam_setVictoryAchieved);

Code

5203void CvTeam::setVictoryAchieved(VictoryTypes eVictory, bool bValue)5204{5205	if(m_abVictoryAchieved[eVictory] != bValue)5206	{5207		m_abVictoryAchieved[eVictory] = bValue;5208	}5209}

Called by