CvGlobals::getNumFeatureInfos()
- Defined in
- CvGlobals.cpp, line 2826
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getNumFeatureInfos
Hooks
static bool BeforeCvGlobals_getNumFeatureInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumFeatureInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumFeatureInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumFeatureInfos>(host, &BeforeCvGlobals_getNumFeatureInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumFeatureInfos>(host, &AfterCvGlobals_getNumFeatureInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumFeatureInfos>(host, &ReplaceCvGlobals_getNumFeatureInfos);
Code
2826int CvGlobals::getNumFeatureInfos()2827{2828 return (int)m_paFeatureInfo.size();2829}
Calls
std::vector::size
Called by
32 functions in 14 files
- CvCity::GetYieldPerTurnFromUnimprovedFeatures(YieldTypes) const
- CvCity::processBuilding(BuildingTypes, int, bool, bool, bool)
- CvCity::read(FDataStream &)
- CvCity::reset(int, PlayerTypes, int, int, bool)
- CvCity::uninit()
- CvCity::write(FDataStream &) const
- CvDllGameContext::GetNumFeatureInfos()
- CvDllDatabaseUtility::ValidatePrefetchProcess()
- CvGame::DoGameStarted()
- FeatureArrayHelpers::Read(FDataStream &, int *)
- CvMap::DoPlaceNaturalWonders()
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlayer::reset(PlayerTypes, bool)
- CvPlot::read(FDataStream &)
- CvPromotionEntry::CacheResults(Database::Results &, CvDatabaseUtility &)
- CvPromotionEntry::GetFeatureAttackPercent(int) const
- CvPromotionEntry::GetFeatureDefensePercent(int) const
- CvPromotionEntry::GetFeatureDoubleMove(int) const
- CvPromotionEntry::GetFeatureHalfMove(int) const
- CvPromotionEntry::GetFeatureImpassable(int) const
- CvPromotionEntry::GetFeaturePassableTech(int) const
- CvTeam::Write(FDataStream &) const
- CvTeam::processTech(TechTypes, int)
- CvTeam::reset(TeamTypes, bool)
- CvPlayerTraits::InitPlayerTraits()
- CvPlayerTraits::Reset()
- CvUnit::AI_promotionValue(PromotionTypes)
- CvUnit::getImpassableCount() const
- CvUnit::reset(int, UnitTypes, PlayerTypes, bool)
- CvUnit::setHasPromotion(PromotionTypes, bool)
- CvUnitEntry::DoUpdatePower()
- InitTypeDesc()