Bazaar developer reference

CvGame::ChangeNumVictoryVotesTallied(int, bool)

Defined in
CvGame.cpp, line 5326
Class
CvGame
Hook name
CivHooks::CvGame_ChangeNumVictoryVotesTallied

Hooks

static bool BeforeCvGame_ChangeNumVictoryVotesTallied(CvGame* self, int iChange, bool bPreliminaryVote);static void AfterCvGame_ChangeNumVictoryVotesTallied(CvGame* self, int iChange, bool bPreliminaryVote);static void ReplaceCvGame_ChangeNumVictoryVotesTallied(void (*original)(CvGame*, int, bool), CvGame* self, int iChange, bool bPreliminaryVote);CivRegisterBefore<CivHooks::CvGame_ChangeNumVictoryVotesTallied>(host, &BeforeCvGame_ChangeNumVictoryVotesTallied);CivRegisterAfter<CivHooks::CvGame_ChangeNumVictoryVotesTallied>(host, &AfterCvGame_ChangeNumVictoryVotesTallied);CivRegisterReplace<CivHooks::CvGame_ChangeNumVictoryVotesTallied>(host, &ReplaceCvGame_ChangeNumVictoryVotesTallied);

Code

5324/// How many diplo votes tallied5325/// Preliminary votes will be counted, but will not trigger victory5326void CvGame::ChangeNumVictoryVotesTallied(int iChange, bool bPreliminaryVote)5327{5328	SetNumVictoryVotesTallied(GetNumVictoryVotesTallied() + iChange, bPreliminaryVote);5329}

Calls

Called by