Bazaar developer reference

CvGame::GetVoteCast(TeamTypes) const

Defined in
CvGame.cpp, line 5346
Class
CvGame
Hook name
CivHooks::CvGame_GetVoteCast

Hooks

static bool BeforeCvGame_GetVoteCast(const CvGame* self, TeamTypes eVotingTeam, TeamTypes& result);static void AfterCvGame_GetVoteCast(const CvGame* self, TeamTypes eVotingTeam, TeamTypes& result);static TeamTypes ReplaceCvGame_GetVoteCast(TeamTypes (*original)(const CvGame*, TeamTypes), const CvGame* self, TeamTypes eVotingTeam);CivRegisterBefore<CivHooks::CvGame_GetVoteCast>(host, &BeforeCvGame_GetVoteCast);CivRegisterAfter<CivHooks::CvGame_GetVoteCast>(host, &AfterCvGame_GetVoteCast);CivRegisterReplace<CivHooks::CvGame_GetVoteCast>(host, &ReplaceCvGame_GetVoteCast);

Code

5346TeamTypes CvGame::GetVoteCast(TeamTypes eVotingTeam) const5347{5348	CvAssertMsg(eVotingTeam >= 0, "eMajor is expected to be non-negative (invalid Index)");5349	CvAssertMsg(eVotingTeam < MAX_CIV_TEAMS, "eMajor is expected to be within maximum bounds (invalid Index)");53505351	return (TeamTypes) m_aiVotesCast[eVotingTeam];5352}

Called by