CvTechXMLEntries::GetEntry(int)
- Defined in
- CvTechClasses.cpp, line 604
- Class
- CvTechXMLEntries
- Hook name
CivHooks::CvTechXMLEntries_GetEntry
Hooks
static bool BeforeCvTechXMLEntries_GetEntry(CvTechXMLEntries* self, int index, CvTechEntry*& result);static void AfterCvTechXMLEntries_GetEntry(CvTechXMLEntries* self, int index, CvTechEntry*& result);static CvTechEntry* ReplaceCvTechXMLEntries_GetEntry(CvTechEntry* (*original)(CvTechXMLEntries*, int), CvTechXMLEntries* self, int index);CivRegisterBefore<CivHooks::CvTechXMLEntries_GetEntry>(host, &BeforeCvTechXMLEntries_GetEntry);CivRegisterAfter<CivHooks::CvTechXMLEntries_GetEntry>(host, &AfterCvTechXMLEntries_GetEntry);CivRegisterReplace<CivHooks::CvTechXMLEntries_GetEntry>(host, &ReplaceCvTechXMLEntries_GetEntry);
Code
603/// Get a specific entry604CvTechEntry* CvTechXMLEntries::GetEntry(int index)605{606 return m_paTechEntries[index];607}
Calls
std::vector::operator[]
Called by
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvAdvisorRecommender::FindUnassignedAdvisorForTech(PlayerTypes, TechTypes)
- CvCity::GetLocalResourceWonderProductionMod(BuildingTypes, CvString *) const
- CvCity::IsCanPurchase(bool, bool, UnitTypes, BuildingTypes, ProjectTypes, YieldTypes)
- CvCity::getProductionModifier(BuildingTypes, CvString *) const
- CvTechAI::AddFlavorWeights(FlavorTypes, int, int)
- CvTechAI::PropagateWeights(int, int, int, int)
- CvTeamTechs::Write(FDataStream &)
- CvPlayerTrade::GetNumTradeRoutesPossible()
- CvPlayerTrade::GetTradeRouteRange(DomainTypes, CvCity *)
- CvUnit::IsHigherTechThan(UnitTypes) const