CvGlobals::getNumResourceInfos()
- Defined in
- CvGlobals.cpp, line 2806
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getNumResourceInfos
Hooks
static bool BeforeCvGlobals_getNumResourceInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumResourceInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumResourceInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumResourceInfos>(host, &BeforeCvGlobals_getNumResourceInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumResourceInfos>(host, &AfterCvGlobals_getNumResourceInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumResourceInfos>(host, &ReplaceCvGlobals_getNumResourceInfos);
Code
2806int CvGlobals::getNumResourceInfos()2807{2808 return (int)m_paResourceInfo.size();2809}
Calls
std::vector::size
Called by
72 functions in 24 files
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvArea::countNumUniqueResourceTypes() const
- CvArea::getNumTotalResources() const
- CvArea::read(FDataStream &)
- CvArea::reset(int, bool, bool)
- CvArea::write(FDataStream &) const
- CvCityBuildings::SetNumRealBuildingTimed(BuildingTypes, int, bool, PlayerTypes, int)
- CvCity::DoPickResourceDemanded(bool)
- CvCity::GetLocalResourceWonderProductionMod(BuildingTypes, CvString *) const
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvCity::processBuilding(BuildingTypes, int, bool, bool, bool)
- CvCity::read(FDataStream &)
- CvCity::reset(int, PlayerTypes, int, int, bool)
- CvCity::uninit()
- CvCity::write(FDataStream &) const
- CvCityStrategyAI::ChooseProduction(bool, BuildingTypes, UnitTypes)
- CvDealAI::DoAddItemsToDealForPeaceTreaty(PlayerTypes, CvDeal *, PeaceTreatyTypes, bool)
- CvDealAI::DoAddResourceToThem(CvDeal *, PlayerTypes, bool, int &, int &, int &, int, int, bool)
- CvDealAI::DoAddResourceToUs(CvDeal *, PlayerTypes, bool, int &, int &, int &, int, int, bool)
- CvDealAI::IsMakeOfferForLuxuryResource(PlayerTypes, CvDeal *)
- CvDiplomacyAI::IsLuxuryRequest(PlayerTypes, CvDeal *, int &)
- CvDllGameContext::GetNumResourceInfos()
- CvDllDatabaseUtility::ValidatePrefetchProcess()
- CvHomelandAI::PlotUpgradeMoves()
- getWonderResource()
- CvMap::Read(FDataStream &)
- CvMap::Write(FDataStream &) const
- CvMap::reset(CvMapInitData *)
- CvMilitaryAI::FindBestUnitToScrap(bool, bool, int &)
- CvMinorCivAI::DoAddStartingResources(CvPlot *)
- CvMinorCivAI::DoUpdateAlliesResourceBonus(PlayerTypes, PlayerTypes)
- CvMinorCivAI::GetHappinessPerLuxuryAlliesBonus(PlayerTypes, EraTypes)
- CvMinorCivAI::GetHappinessPerLuxuryFriendshipBonus(PlayerTypes, EraTypes)
- CvMinorCivAI::GetNearbyResourceForQuest(PlayerTypes)
- CvMinorCivAI::GetNumResourcesMajorLacks(PlayerTypes)
- CvMinorCivAI::GetStatusChangeNotificationStrings(PlayerTypes, bool, bool, bool, PlayerTypes, PlayerTypes)
- CvPlayer::GetHappinessFromResourceVariety() const
- CvPlayer::GetHappinessFromResources() const
- CvPlayer::Read(FDataStream &)
- CvPlayer::UpdateResourcesSiphoned()
- CvPlayer::addFreeUnitAI(UnitAITypes, int)
- CvPlayer::canConstruct(BuildingTypes, bool, bool, bool, CvString *) const
- CvPlayer::canCreate(ProjectTypes, bool, bool) const
- CvPlayer::canReceiveGoody(CvPlot *, GoodyTypes, CvUnit *) const
- CvPlayer::canTrain(UnitTypes, bool, bool, bool, bool, CvString *) const
- CvPlayer::changeBuildingClassMaking(BuildingClassTypes, int)
- CvPlayer::changeProjectMaking(ProjectTypes, int)
- CvPlayer::changeUnitClassMaking(UnitClassTypes, int)
- CvPlayer::initFreeState(CvGameInitialItemsOverrides &)
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlayer::reset(PlayerTypes, bool)
- CvPlot::doImprovement()
- CvPlot::setImprovementType(ImprovementTypes, PlayerTypes)
- CvPlot::setRouteType(RouteTypes)
- CvProjectEntry::GetResourceQuantityRequirement(int) const
- CvTeam::changeProjectCount(ProjectTypes, int)
- CvTeam::shareItems(TeamTypes)
- CvPlayerTrade::GetTradeConnectionResourceValueTimes100(const TradeConnection &, YieldTypes, bool)
- CvPlayerTraits::AddUniqueLuxuries(CvCity *)
- CvPlayerTraits::InitPlayerTraits()
- CvPlayerTraits::Reset()
- CvPlayerTraits::WillGetUniqueLuxury(CvArea *) const
- CvTraitEntry::CacheResults(Database::Results &, CvDatabaseUtility &)
- CvUnit::CanUpgradeTo(UnitTypes, bool) const
- CvUnit::GetStrategicResourceCombatPenalty() const
- CvUnit::build(BuildTypes)
- CvUnit::initWithNameOffset(int, UnitTypes, int, UnitAITypes, PlayerTypes, int, int, DirectionTypes, bool, bool, int, int)
- CvUnit::kill(bool, PlayerTypes)
- CvUnitMission::PopMission(UnitHandle)
- CvUnitMission::PushMission(UnitHandle, MissionTypes, int, int, int, bool, bool, MissionAITypes, CvPlot *, CvUnit *)
- CvLeague::GetChoicesForDecision(ResolutionDecisionTypes, PlayerTypes)
- InitTypeDesc()