Bazaar developer reference

CvGame::getRankTeam(int)

Defined in
CvGame.cpp, line 7204
Class
CvGame
Hook name
CivHooks::CvGame_getRankTeam

Hooks

static bool BeforeCvGame_getRankTeam(CvGame* self, int iRank, TeamTypes& result);static void AfterCvGame_getRankTeam(CvGame* self, int iRank, TeamTypes& result);static TeamTypes ReplaceCvGame_getRankTeam(TeamTypes (*original)(CvGame*, int), CvGame* self, int iRank);CivRegisterBefore<CivHooks::CvGame_getRankTeam>(host, &BeforeCvGame_getRankTeam);CivRegisterAfter<CivHooks::CvGame_getRankTeam>(host, &AfterCvGame_getRankTeam);CivRegisterReplace<CivHooks::CvGame_getRankTeam>(host, &ReplaceCvGame_getRankTeam);

Code

7204TeamTypes CvGame::getRankTeam(int iRank)7205{7206	CvAssertMsg(iRank >= 0, "iRank is expected to be non-negative (invalid Rank)");7207	CvAssertMsg(iRank < MAX_TEAMS, "iRank is expected to be within maximum bounds (invalid Index)");7208	return (TeamTypes)m_aiRankTeam[iRank];7209}

Called by