Bazaar developer reference

CvGame::GetNumVotesForTeam(TeamTypes) const

Defined in
CvGame.cpp, line 5405
Class
CvGame
Hook name
CivHooks::CvGame_GetNumVotesForTeam

Hooks

static bool BeforeCvGame_GetNumVotesForTeam(const CvGame* self, TeamTypes eTeam, int& result);static void AfterCvGame_GetNumVotesForTeam(const CvGame* self, TeamTypes eTeam, int& result);static int ReplaceCvGame_GetNumVotesForTeam(int (*original)(const CvGame*, TeamTypes), const CvGame* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvGame_GetNumVotesForTeam>(host, &BeforeCvGame_GetNumVotesForTeam);CivRegisterAfter<CivHooks::CvGame_GetNumVotesForTeam>(host, &AfterCvGame_GetNumVotesForTeam);CivRegisterReplace<CivHooks::CvGame_GetNumVotesForTeam>(host, &ReplaceCvGame_GetNumVotesForTeam);

Code

5405int CvGame::GetNumVotesForTeam(TeamTypes eTeam) const5406{5407	CvAssertMsg(eTeam >= 0, "eMajor is expected to be non-negative (invalid Index)");5408	CvAssertMsg(eTeam < MAX_CIV_TEAMS, "eMajor is expected to be within maximum bounds (invalid Index)");54095410	return m_aiNumVotesForTeam[eTeam];5411}

Called by