CvGame::GetVotesNeededForDiploVictory() const
- Defined in
- CvGame.cpp, line 5236
- Class
- CvGame
- Hook name
CivHooks::CvGame_GetVotesNeededForDiploVictory
Hooks
static bool BeforeCvGame_GetVotesNeededForDiploVictory(const CvGame* self, int& result);static void AfterCvGame_GetVotesNeededForDiploVictory(const CvGame* self, int& result);static int ReplaceCvGame_GetVotesNeededForDiploVictory(int (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_GetVotesNeededForDiploVictory>(host, &BeforeCvGame_GetVotesNeededForDiploVictory);CivRegisterAfter<CivHooks::CvGame_GetVotesNeededForDiploVictory>(host, &AfterCvGame_GetVotesNeededForDiploVictory);CivRegisterReplace<CivHooks::CvGame_GetVotesNeededForDiploVictory>(host, &ReplaceCvGame_GetVotesNeededForDiploVictory);
Code
5235/// How many votes are needed to win?5236int CvGame::GetVotesNeededForDiploVictory() const5237{5238 return m_iVotesNeededForDiploVictory;5239}
Called by
- CvCityStrategyAI::ChooseProduction(bool, BuildingTypes, UnitTypes)
- CvDllGame::GetVotesNeededForDiploVictory() const
- CvGame::SetVotesNeededForDiploVictory(int)
- CvGrandStrategyAI::GetUnitedNationsPriority()
- CvEnactProposal::IsPassed(int)
- CvLeague::NotifyProposalResult(CvEnactProposal *)
- CvLeagueAI::ScoreVoteChoicePlayer(CvProposal *, int, bool)
- CvWonderProductionAI::ChooseWonder(bool, bool, int &)
- CvWonderProductionAI::ChooseWonderForGreatEngineer(bool, int &, CvCity *&)
- CvLuaGame::lGetVotesNeededForDiploVictory(lua_State *)