CvGame::isVictoryValid(VictoryTypes) const
- Defined in
- CvGame.cpp, line 7444
- Class
- CvGame
- Hook name
CivHooks::CvGame_isVictoryValid
Hooks
static bool BeforeCvGame_isVictoryValid(const CvGame* self, VictoryTypes eIndex, bool& result);static void AfterCvGame_isVictoryValid(const CvGame* self, VictoryTypes eIndex, bool& result);static bool ReplaceCvGame_isVictoryValid(bool (*original)(const CvGame*, VictoryTypes), const CvGame* self, VictoryTypes eIndex);CivRegisterBefore<CivHooks::CvGame_isVictoryValid>(host, &BeforeCvGame_isVictoryValid);CivRegisterAfter<CivHooks::CvGame_isVictoryValid>(host, &AfterCvGame_isVictoryValid);CivRegisterReplace<CivHooks::CvGame_isVictoryValid>(host, &ReplaceCvGame_isVictoryValid);
Code
7444bool CvGame::isVictoryValid(VictoryTypes eIndex) const7445{7446 CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");7447 CvAssertMsg(eIndex < GC.getNumVictoryInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");7448 return CvPreGame::isVictory(eIndex);7449}
Calls
Called by
- CvPlayerCulture::DoTurn()
- CvGame::DoTestConquestVictory()
- CvGame::areNoVictoriesValid() const
- CvGame::init(HandicapTypes)
- CvGame::testVictory(VictoryTypes, TeamTypes, bool *) const
- CvGrandStrategyAI::GetConquestPriority()
- CvGrandStrategyAI::GetCulturePriority()
- CvGrandStrategyAI::GetSpaceshipPriority()
- CvGrandStrategyAI::GetUnitedNationsPriority()
- CvPlayer::canConstruct(BuildingTypes, bool, bool, bool, CvString *) const
- CvPlayer::canCreate(ProjectTypes, bool, bool) const
- CvReplayInfo::createInfo()
- CvLeague::GetLeagueSplashNextEraDetails(LeagueSpecialSessionTypes, bool)
- CvLeague::GetLeagueSplashThisEraDetails(LeagueSpecialSessionTypes, bool)
- CvLeague::GetTurnsUntilVictorySession()
- CvLeague::IsResolutionEffectsValid(ResolutionTypes, int, CvString *)
- CvLuaGame::lIsVictoryValid(lua_State *)