CvGlobals::getNumTechInfos()
- Defined in
- CvGlobals.cpp, line 3908
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getNumTechInfos
Hooks
static bool BeforeCvGlobals_getNumTechInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumTechInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumTechInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumTechInfos>(host, &BeforeCvGlobals_getNumTechInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumTechInfos>(host, &AfterCvGlobals_getNumTechInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumTechInfos>(host, &ReplaceCvGlobals_getNumTechInfos);
Code
3908int CvGlobals::getNumTechInfos()3909{3910 return (int)m_pTechs->GetTechEntries().size();3911}
Calls
- CvTechXMLEntries::GetTechEntries()
std::vector::size
Called by
36 functions in 16 files
- CvCity::updateStrengthValue()
- CvDllGameContext::GetNumTechInfos()
- CvDllDatabaseUtility::ValidatePrefetchProcess()
- CvDllTeam::GetTechs(TechTypes *, uint) const
- CvEspionageAI::BuildOffenseCityList(EspionageCityList &)
- CvGame::CheckGenerateArchaeology()
- CvGame::initFreeState(CvGameInitialItemsOverrides &)
- CvGame::initScoreCalculation()
- getDiscoveryTech(UnitTypes, PlayerTypes)
- CvImprovementEntry::CacheResults(Database::Results &, CvDatabaseUtility &)
- CvFeatureInfo::CacheResults(Database::Results &, CvDatabaseUtility &)
- CvTerrainInfo::CacheResults(Database::Results &, CvDatabaseUtility &)
- CvMinorCivAI::GetGoodTechPlayerDoesntHave(PlayerTypes, int) const
- CvPlayer::DoTechFromCityConquer(CvCity *)
- CvPlayer::canReceiveGoody(CvPlot *, GoodyTypes, CvUnit *) const
- CvPlayer::clearResearchQueue()
- CvPlayer::getAdvancedStartTechCost(TechTypes, bool)
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvPlayerAI::AI_chooseFreeTech()
- CvPlayerAI::AI_chooseResearch()
- CvPlot::calculateImprovementYieldChange(ImprovementTypes, YieldTypes, PlayerTypes, bool, RouteTypes) const
- CvTeam::DoBarbarianTech()
- CvTeam::DoMinorCivTech()
- CvTeam::doTurn()
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvTeam::shareCounters(TeamTypes)
- CvTeam::shareItems(TeamTypes)
- CvTeam::updateTechShare()
- CvPlayerTechs::CanResearchForFree(TechTypes) const
- CvPlayerTechs::GetMedianTechResearch() const
- CvPlayerTechs::IsNoResearchAvailable() const
- CvTeamTechs::GetNumTechsKnown() const
- CvTeamTechs::HasResearchedAllTechs() const
- InitTypeDesc()
- SetPlayerInitialItems(CvPlayer &, const CvWorldBuilderMap::Player &)
- SetTeamInitialItems(CvTeam &, const CvWorldBuilderMap::Team &)