Bazaar developer reference

CvGame::isVictoryAvailable(VictoryTypes) const

Defined in
CvGame.cpp, line 6677
Class
CvGame
Hook name
CivHooks::CvGame_isVictoryAvailable

Hooks

static bool BeforeCvGame_isVictoryAvailable(const CvGame* self, VictoryTypes eVictory, bool& result);static void AfterCvGame_isVictoryAvailable(const CvGame* self, VictoryTypes eVictory, bool& result);static bool ReplaceCvGame_isVictoryAvailable(bool (*original)(const CvGame*, VictoryTypes), const CvGame* self, VictoryTypes eVictory);CivRegisterBefore<CivHooks::CvGame_isVictoryAvailable>(host, &BeforeCvGame_isVictoryAvailable);CivRegisterAfter<CivHooks::CvGame_isVictoryAvailable>(host, &AfterCvGame_isVictoryAvailable);CivRegisterReplace<CivHooks::CvGame_isVictoryAvailable>(host, &ReplaceCvGame_isVictoryAvailable);

Code

6676// Check last slot to see if there is still a Victory slot open6677bool CvGame::isVictoryAvailable(VictoryTypes eVictory) const6678{6679	if(getTeamVictoryRank(eVictory, GC.getNUM_VICTORY_POINT_AWARDS() - 1) == NO_TEAM)6680	{6681		return true;6682	}66836684	return false;6685}

Calls

Called by