Bazaar developer reference

CvGame::areNoVictoriesValid() const

Defined in
CvGame.cpp, line 7460
Class
CvGame
Hook name
CivHooks::CvGame_areNoVictoriesValid

Hooks

static bool BeforeCvGame_areNoVictoriesValid(const CvGame* self, bool& result);static void AfterCvGame_areNoVictoriesValid(const CvGame* self, bool& result);static bool ReplaceCvGame_areNoVictoriesValid(bool (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_areNoVictoriesValid>(host, &BeforeCvGame_areNoVictoriesValid);CivRegisterAfter<CivHooks::CvGame_areNoVictoriesValid>(host, &AfterCvGame_areNoVictoriesValid);CivRegisterReplace<CivHooks::CvGame_areNoVictoriesValid>(host, &ReplaceCvGame_areNoVictoriesValid);

Code

7460bool CvGame::areNoVictoriesValid() const7461{7462	bool bRtnValue = true;74637464	for(int iI = 0; iI < GC.getNumVictoryInfos(); iI++)7465	{7466		VictoryTypes eVictory = static_cast<VictoryTypes>(iI);7467		CvVictoryInfo* pkVictoryInfo = GC.getVictoryInfo(eVictory);7468		if(pkVictoryInfo)7469		{7470			if(isVictoryValid(eVictory))7471			{7472				bRtnValue = false;7473				break;7474			}7475		}7476	}74777478	return bRtnValue;7479}

Calls

Called by