CvGameLeagues::GetNumActiveLeagues()
- Defined in
- CvVotingClasses.cpp, line 7082
- Class
- CvGameLeagues
- Hook name
CivHooks::CvGameLeagues_GetNumActiveLeagues
Hooks
static bool BeforeCvGameLeagues_GetNumActiveLeagues(CvGameLeagues* self, int& result);static void AfterCvGameLeagues_GetNumActiveLeagues(CvGameLeagues* self, int& result);static int ReplaceCvGameLeagues_GetNumActiveLeagues(int (*original)(CvGameLeagues*), CvGameLeagues* self);CivRegisterBefore<CivHooks::CvGameLeagues_GetNumActiveLeagues>(host, &BeforeCvGameLeagues_GetNumActiveLeagues);CivRegisterAfter<CivHooks::CvGameLeagues_GetNumActiveLeagues>(host, &AfterCvGameLeagues_GetNumActiveLeagues);CivRegisterReplace<CivHooks::CvGameLeagues_GetNumActiveLeagues>(host, &ReplaceCvGameLeagues_GetNumActiveLeagues);
Code
7082int CvGameLeagues::GetNumActiveLeagues()7083{7084 return m_vActiveLeagues.size();7085}
Calls
BaseVector::size
Called by
- CvCity::setupWonderGraphics()
- CvDealAI::GetVoteCommitmentValue(bool, PlayerTypes, int, int, int, bool, bool)
- CvDeal::IsPossibleToTradeItem(PlayerTypes, PlayerTypes, TradeableItems, int, int, int, bool, bool, bool)
- CvGame::IsResolutionPassed(ResolutionTypes, int) const
- CvGame::IsUnitedNationsActive()
- CvGrandStrategyAI::GetUnitedNationsPriority()
- CvGameLeagues::DoTurn()
- CvGameLeagues::FoundLeague(PlayerTypes)
- CvLeagueAI::EvaluateVoteForTrade(int, int, int, bool)
- CvLeagueAI::FindBestVoteChoices(CvEnactProposal *, VoteConsiderationList &)
- CvLeagueAI::FindBestVoteChoices(CvRepealProposal *, VoteConsiderationList &)
- CvLeagueAI::GetDesiredVoteCommitments(PlayerTypes)
- CvLeagueAI::GetExtraVotesPerCityStateAlly()
- CvLeagueAI::ScoreVoteChoice(CvEnactProposal *, int)
- CvLeagueAI::ScoreVoteChoice(CvRepealProposal *, int)
- CvLuaGame::lGetNumActiveLeagues(lua_State *)