Bazaar developer reference

CvTeam::getVictoryCountdown(VictoryTypes) const

Defined in
CvTeam.cpp, line 5088
Class
CvTeam
Hook name
CivHooks::CvTeam_getVictoryCountdown

Hooks

static bool BeforeCvTeam_getVictoryCountdown(const CvTeam* self, VictoryTypes eIndex, int& result);static void AfterCvTeam_getVictoryCountdown(const CvTeam* self, VictoryTypes eIndex, int& result);static int ReplaceCvTeam_getVictoryCountdown(int (*original)(const CvTeam*, VictoryTypes), const CvTeam* self, VictoryTypes eIndex);CivRegisterBefore<CivHooks::CvTeam_getVictoryCountdown>(host, &BeforeCvTeam_getVictoryCountdown);CivRegisterAfter<CivHooks::CvTeam_getVictoryCountdown>(host, &AfterCvTeam_getVictoryCountdown);CivRegisterReplace<CivHooks::CvTeam_getVictoryCountdown>(host, &ReplaceCvTeam_getVictoryCountdown);

Code

5088int CvTeam::getVictoryCountdown(VictoryTypes eIndex) const5089{5090	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");5091	CvAssertMsg(eIndex < GC.getNumVictoryInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");5092	return m_aiVictoryCountdown[eIndex];5093}

Called by