CvGlobals::getImprovementInfo(ImprovementTypes)
- Defined in
- CvGlobals.cpp, line 3173
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getImprovementInfo_with_ImprovementTypes
Hooks
static bool BeforeCvGlobals_getImprovementInfo_with_ImprovementTypes(CvGlobals* self, ImprovementTypes eImprovementNum, CvImprovementEntry*& result);static void AfterCvGlobals_getImprovementInfo_with_ImprovementTypes(CvGlobals* self, ImprovementTypes eImprovementNum, CvImprovementEntry*& result);static CvImprovementEntry* ReplaceCvGlobals_getImprovementInfo_with_ImprovementTypes(CvImprovementEntry* (*original)(CvGlobals*, ImprovementTypes), CvGlobals* self, ImprovementTypes eImprovementNum);CivRegisterBefore<CivHooks::CvGlobals_getImprovementInfo_with_ImprovementTypes>(host, &BeforeCvGlobals_getImprovementInfo_with_ImprovementTypes);CivRegisterAfter<CivHooks::CvGlobals_getImprovementInfo_with_ImprovementTypes>(host, &AfterCvGlobals_getImprovementInfo_with_ImprovementTypes);CivRegisterReplace<CivHooks::CvGlobals_getImprovementInfo_with_ImprovementTypes>(host, &ReplaceCvGlobals_getImprovementInfo_with_ImprovementTypes);
Code
3173CvImprovementEntry* CvGlobals::getImprovementInfo(ImprovementTypes eImprovementNum)3174{3175 CvAssert(eImprovementNum > -1);3176 CvAssert(eImprovementNum < GC.getNumImprovementInfos());3177 if(eImprovementNum > -1 && eImprovementNum < GC.getNumImprovementInfos())3178 return m_pImprovements->GetImprovementEntries()[eImprovementNum];3179 else3180 return NULL;3181}
Calls
- CvGlobals::getNumImprovementInfos()
- CvImprovementXMLEntries::GetImprovementEntries()
std::vector::operator[]
Called by
81 functions in 29 files
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvBarbarians::DoCamps()
- CvBuilderTaskingAI::AddImprovingPlotsDirectives(CvUnit *, CvPlot *, int)
- CvBuilderTaskingAI::AddImprovingResourcesDirectives(CvUnit *, CvPlot *, int)
- CvBuilderTaskingAI::GetResourceWeight(ResourceTypes, ImprovementTypes, int)
- CvBuilderTaskingAI::Init(CvPlayer *)
- CvBuilderTaskingAI::IsImprovementBeneficial(CvPlot *, const CvBuildInfo &, YieldTypes, bool)
- CvBuilderTaskingAI::LogDirective(BuilderDirective, CvUnit *, int, bool)
- CvCity::processBuilding(BuildingTypes, int, bool, bool, bool)
- CityStrategyAIHelpers::IsTestCityStrategy_WantTileImprovers(AICityStrategyTypes, CvCity *)
- CvCityCulture::GetYieldFromImprovements(YieldTypes) const
- CvDangerPlots::UpdateDanger(bool, bool)
- CvDllGameContext::GetImprovementInfo(ImprovementTypes)
- EconomicAIHelpers::IsTestStrategy_NeedImprovement(CvPlayer *, YieldTypes)
- CalculateDigSiteWeight(int, FFastVector<CvArchaeologyData, true, c_eCiv5GameplayDLL, 0> &, FFastVector<CvArchaeologyData, true, c_eCiv5GameplayDLL, 0> &)
- CvGame::getImprovementUpgradeTime(ImprovementTypes, const CvPlot *) const
- CvGame::getImprovementUpgradeTimeMod(ImprovementTypes, const CvPlot *) const
- CvGame::handleAction(int)
- finalImprovementUpgrade(ImprovementTypes, int)
- CvHomelandAI::FindHomelandTargets()
- ImprovementArrayHelpers::Write(FDataStream &, int *, int)
- ImprovementArrayHelpers::WriteYieldArray(FDataStream &, int **, int)
- CvInfosSerializationHelper::Write(FDataStream &, const ImprovementTypes)
- CvInfosSerializationHelper::WriteHashed(FDataStream &, const ImprovementTypes)
- CvPlayer::canBuild(const CvPlot *, BuildTypes, bool, bool, bool, bool) const
- CvPlayer::getGreatPersonImprovementCount()
- CvPlayerAI::FindBestArtistTargetPlot(CvUnit *, int &)
- CvPlot::DoFindCityToLinkResourceTo(CvCity *)
- CvPlot::HasSpecialImprovement() const
- CvPlot::IsAllowsWalkWater() const
- CvPlot::SetImprovementPillaged(bool, bool)
- CvPlot::calculateAdditionalUnitsFromImprovement()
- CvPlot::calculateImprovementYieldChange(ImprovementTypes, YieldTypes, PlayerTypes, bool, RouteTypes) const
- CvPlot::calculateYield(YieldTypes, bool)
- CvPlot::canBuild(BuildTypes, PlayerTypes, bool, bool) const
- CvPlot::canHaveImprovement(ImprovementTypes, TeamTypes, bool) const
- CvPlot::changeBuildProgress(BuildTypes, int, PlayerTypes)
- CvPlot::defenseModifier(TeamTypes, bool, bool) const
- CvPlot::doImprovement()
- CvPlot::doImprovementUpgrade()
- CvPlot::getImprovementTypeNeededToImproveResource(PlayerTypes, bool)
- CvPlot::getTurnDamage(bool, bool, bool, bool) const
- CvPlot::getVisibleResourceState(ResourceTypes &, bool &, bool &)
- CvPlot::getYieldWithBuild(BuildTypes, YieldTypes, bool, PlayerTypes) const
- CvPlot::isFreshWater() const
- CvPlot::isGoody(TeamTypes) const
- CvPlot::isPassableImprovement() const
- CvPlot::isRevealedGoody(TeamTypes) const
- CvPlot::read(FDataStream &)
- CvPlot::setFeatureType(FeatureTypes, int)
- CvPlot::setImprovementType(ImprovementTypes, PlayerTypes)
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvPlot::setRevealed(TeamTypes, bool, CvUnit *, bool, TeamTypes)
- CvPlot::setRevealedImprovementType(TeamTypes, ImprovementTypes)
- CvCitySiteEvaluator::PlotFoundValue(CvPlot *, CvPlayer *, YieldTypes, bool)
- CvTacticalAI::FindTacticalTargets()
- CvTacticalAI::IdentifyPriorityTargetsByType()
- CvTacticalAnalysisMap::MarkCellsNearEnemy()
- CvTeam::processTech(TechTypes, int)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvPlayerTechs::Reset()
- CvPlayerTechs::SetLocalePriorities()
- CvUnit::IsNearEnemyCitadel(int &)
- CvUnit::UnitBuild(BuildTypes)
- CvUnit::build(BuildTypes)
- CvUnit::canLoad(const CvPlot &) const
- CvUnit::canPillage(const CvPlot *) const
- CvUnit::canRebaseAt(const CvPlot *, int, int) const
- CvUnit::getAirliftFromPlot(const CvPlot *) const
- CvUnit::getAirliftToPlot(const CvPlot *, bool) const
- CvUnit::pillage()
- CvUnitCombat::GenerateMeleeCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitMission::PopMission(UnitHandle)
- CvUnitMission::PushMission(UnitHandle, MissionTypes, int, int, int, bool, bool, MissionAITypes, CvPlot *, CvUnit *)
- CvActiveResolution::DoEffects(PlayerTypes)
- CvActiveResolution::RemoveEffects(PlayerTypes)
- CvWorldBuilderMapLoader::ClearGoodies()
- CvWorldBuilderMapLoader::Preload(const wchar_t *, bool)
- InitTypeDesc()
- CvLuaPlayer::lGetUnimprovedAvailableLuxuryResource(lua_State *)
- CvLuaPlot::lIsResourceConnectedByImprovement(lua_State *)