CvGlobals::getFeatureInfo(FeatureTypes)
- Defined in
- CvGlobals.cpp, line 2836
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getFeatureInfo_with_FeatureTypes
Hooks
static bool BeforeCvGlobals_getFeatureInfo_with_FeatureTypes(CvGlobals* self, FeatureTypes eFeatureNum, CvFeatureInfo*& result);static void AfterCvGlobals_getFeatureInfo_with_FeatureTypes(CvGlobals* self, FeatureTypes eFeatureNum, CvFeatureInfo*& result);static CvFeatureInfo* ReplaceCvGlobals_getFeatureInfo_with_FeatureTypes(CvFeatureInfo* (*original)(CvGlobals*, FeatureTypes), CvGlobals* self, FeatureTypes eFeatureNum);CivRegisterBefore<CivHooks::CvGlobals_getFeatureInfo_with_FeatureTypes>(host, &BeforeCvGlobals_getFeatureInfo_with_FeatureTypes);CivRegisterAfter<CivHooks::CvGlobals_getFeatureInfo_with_FeatureTypes>(host, &AfterCvGlobals_getFeatureInfo_with_FeatureTypes);CivRegisterReplace<CivHooks::CvGlobals_getFeatureInfo_with_FeatureTypes>(host, &ReplaceCvGlobals_getFeatureInfo_with_FeatureTypes);
Code
2836CvFeatureInfo* CvGlobals::getFeatureInfo(FeatureTypes eFeatureNum)2837{2838 CvAssert(eFeatureNum > -1);2839 CvAssert(eFeatureNum < GC.getNumFeatureInfos());2840 if(eFeatureNum > -1 && eFeatureNum < (int)m_paFeatureInfo.size())2841 return m_paFeatureInfo[eFeatureNum];2842 else2843 return NULL;2844}
Calls
std::vector::operator[]std::vector::size
Called by
46 functions in 21 files
- BuildRouteCost(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- IgnoreUnitsCost(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- InfluenceCost(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- PathCost(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- CvBarbarians::DoCamps()
- CvCity::DoUpdateFeatureSurrounded()
- CvCity::GetYieldPerTurnFromUnimprovedFeatures(YieldTypes) const
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvCityCulture::GetCultureFromNaturalWonders() const
- CvDllGameContext::GetFeatureInfo(FeatureTypes)
- CvEconomicAI::ScoreExplorePlot(CvPlot *, TeamTypes, int, DomainTypes)
- CalculateDigSiteWeight(int, FFastVector<CvArchaeologyData, true, c_eCiv5GameplayDLL, 0> &, FFastVector<CvArchaeologyData, true, c_eCiv5GameplayDLL, 0> &)
- CvGame::DoGameStarted()
- FeatureArrayHelpers::Write(FDataStream &, int *, int)
- FeatureArrayHelpers::WriteYieldArray(FDataStream &, int **, int)
- CvInfosSerializationHelper::Write(FDataStream &, const FeatureTypes)
- CvInfosSerializationHelper::WriteHashed(FDataStream &, const FeatureTypes)
- CvMap::DoPlaceNaturalWonders()
- CvPlayer::GetHappinessFromNaturalWonders() const
- CvPlayer::getAdvancedStartImprovementCost(ImprovementTypes, bool, CvPlot *)
- CvPlayerAI::FindBestArtistTargetPlot(CvUnit *, int &)
- CvPlot::IsNaturalWonder() const
- CvPlot::calculateNatureYield(YieldTypes, TeamTypes, bool) const
- CvPlot::canHaveFeature(FeatureTypes) const
- CvPlot::canHaveImprovement(ImprovementTypes, TeamTypes, bool) const
- CvPlot::changeBuildProgress(BuildTypes, int, PlayerTypes)
- CvPlot::defenseModifier(TeamTypes, bool, bool) const
- CvPlot::getTurnDamage(bool, bool, bool, bool) const
- CvPlot::isFreshWater() const
- CvPlot::seeThroughLevel(bool) const
- CvPlot::setFeatureType(FeatureTypes, int)
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvPlot::setRevealed(TeamTypes, bool, CvUnit *, bool, TeamTypes)
- CvPlot::updateImpassable()
- CvCitySiteEvaluator::CanFound(CvPlot *, const CvPlayer *, bool) const
- CvCitySiteEvaluator::ComputeStrategicValue(CvPlot *, CvPlayer *, int)
- CvTeam::processTech(TechTypes, int)
- CvUnit::AI_promotionValue(PromotionTypes)
- CvUnit::doTurn()
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvUnitCombat::ApplyNuclearExplosionDamage(const CvCombatMemberEntry *, int, CvUnit *, CvPlot *, int)
- CvUnitMission::PushMission(UnitHandle, MissionTypes, int, int, int, bool, bool, MissionAITypes, CvPlot *, CvUnit *)
- CvUnitMovement::GetCostsForMove(const CvUnit *, const CvPlot *, const CvPlot *, int, int &, int &, int &)
- CvLeague::GetFeatureYieldChange(FeatureTypes, YieldTypes)
- CvWorldBuilderMapLoader::Save(const wchar_t *, const char *)
- InitTypeDesc()