CvGlobals::getTechInfo(TechTypes)
- Defined in
- CvGlobals.cpp, line 3918
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getTechInfo_with_TechTypes
Hooks
static bool BeforeCvGlobals_getTechInfo_with_TechTypes(CvGlobals* self, TechTypes eTechNum, CvTechEntry*& result);static void AfterCvGlobals_getTechInfo_with_TechTypes(CvGlobals* self, TechTypes eTechNum, CvTechEntry*& result);static CvTechEntry* ReplaceCvGlobals_getTechInfo_with_TechTypes(CvTechEntry* (*original)(CvGlobals*, TechTypes), CvGlobals* self, TechTypes eTechNum);CivRegisterBefore<CivHooks::CvGlobals_getTechInfo_with_TechTypes>(host, &BeforeCvGlobals_getTechInfo_with_TechTypes);CivRegisterAfter<CivHooks::CvGlobals_getTechInfo_with_TechTypes>(host, &AfterCvGlobals_getTechInfo_with_TechTypes);CivRegisterReplace<CivHooks::CvGlobals_getTechInfo_with_TechTypes>(host, &ReplaceCvGlobals_getTechInfo_with_TechTypes);
Code
3918CvTechEntry* CvGlobals::getTechInfo(TechTypes eTechNum)3919{3920 CvAssert(eTechNum > -1);3921 CvAssert(eTechNum < GC.getNumTechInfos());3922 return m_pTechs->GetTechEntries()[eTechNum];3923}
Calls
- CvTechXMLEntries::GetTechEntries()
std::vector::operator[]
Called by
41 functions in 16 files
- CvDllGameContext::GetTechInfo(TechTypes)
- CvEconomicAI::DisbandLongObsoleteUnits()
- CvEspionageAI::BuildOffenseCityList(EspionageCityList &)
- CvPlayerEspionage::ProcessSpyMessages()
- CvGame::CheckGenerateArchaeology()
- CvGame::GetRandomUniqueUnitType(bool, bool, bool, bool)
- CvGame::GetResearchLeftToTech(TeamTypes, TechTypes)
- CvGame::initFreeState(CvGameInitialItemsOverrides &)
- CvGame::initScoreCalculation()
- getDiscoveryTech(UnitTypes, PlayerTypes)
- getTechScore(TechTypes)
- CvGameQueries::GetLeastAdvancedUnitClassNobodyHas(bool)
- CvInfosSerializationHelper::Write(FDataStream &, const TechTypes)
- CvInfosSerializationHelper::WriteHashed(FDataStream &, const TechTypes)
- CvMinorCivAI::GetGoodTechPlayerDoesntHave(PlayerTypes, int) const
- CvPlayer::DoTechFromCityConquer(CvCity *)
- CvPlayer::DoUnresearchedTechBonusFromKill(CvUnit *, UnitTypes, int, int, int &)
- CvPlayer::calculateResearchModifier(TechTypes)
- CvPlayer::canBuild(const CvPlot *, BuildTypes, bool, bool, bool, bool) const
- CvPlayer::canReceiveGoody(CvPlot *, GoodyTypes, CvUnit *) const
- CvPlayer::findPathLength(TechTypes, bool) const
- CvPlayer::getAdvancedStartTechCost(TechTypes, bool)
- CvPlayer::getProductionNeeded(BuildingTypes) const
- CvPlayer::pushResearch(TechTypes, bool)
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvTeam::DoUpdateBestRoute()
- CvTeam::announceTechToPlayers(TechTypes, bool)
- CvTeam::processTech(TechTypes, int)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvTechAI::LogPossibleResearch()
- CvTechAI::LogResearchChoice(TechTypes)
- CvPlayerTechs::CanEverResearch(TechTypes) const
- CvPlayerTechs::CanResearch(TechTypes, bool) const
- CvPlayerTechs::IsCurrentResearchRepeat() const
- CvTeamTechs::GetMaxResearchOverflow(TechTypes, PlayerTypes) const
- CvTeamTechs::GetResearchCost(TechTypes) const
- CvUnit::upgradePrice(UnitTypes) const
- CvUnitMission::PushMission(UnitHandle, MissionTypes, int, int, int, bool, bool, MissionAITypes, CvPlot *, CvUnit *)
- CvLeague::CanProposeEnact(ResolutionTypes, PlayerTypes, int, CvString *)
- InitTypeDesc()
- SetPlayerInitialItems(CvPlayer &, const CvWorldBuilderMap::Player &)