Bazaar developer reference

CvGame::getTeamVictoryRank(VictoryTypes, int) const

Defined in
CvGame.cpp, line 6779
Class
CvGame
Hook name
CivHooks::CvGame_getTeamVictoryRank

Hooks

static bool BeforeCvGame_getTeamVictoryRank(const CvGame* self, VictoryTypes eNewVictory, int iRank, TeamTypes& result);static void AfterCvGame_getTeamVictoryRank(const CvGame* self, VictoryTypes eNewVictory, int iRank, TeamTypes& result);static TeamTypes ReplaceCvGame_getTeamVictoryRank(TeamTypes (*original)(const CvGame*, VictoryTypes, int), const CvGame* self, VictoryTypes eNewVictory, int iRank);CivRegisterBefore<CivHooks::CvGame_getTeamVictoryRank>(host, &BeforeCvGame_getTeamVictoryRank);CivRegisterAfter<CivHooks::CvGame_getTeamVictoryRank>(host, &AfterCvGame_getTeamVictoryRank);CivRegisterReplace<CivHooks::CvGame_getTeamVictoryRank>(host, &ReplaceCvGame_getTeamVictoryRank);

Code

6779TeamTypes CvGame::getTeamVictoryRank(VictoryTypes eNewVictory, int iRank) const6780{6781	CvAssert(iRank >= 0);6782	CvAssert(iRank < GC.getNUM_VICTORY_POINT_AWARDS());67836784	return (TeamTypes) m_ppaaiTeamVictoryRank[eNewVictory][iRank];6785}

Called by