CvGlobals::getBuildInfo(BuildTypes)
- Defined in
- CvGlobals.cpp, line 3198
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getBuildInfo_with_BuildTypes
Hooks
static bool BeforeCvGlobals_getBuildInfo_with_BuildTypes(CvGlobals* self, BuildTypes eBuildNum, CvBuildInfo*& result);static void AfterCvGlobals_getBuildInfo_with_BuildTypes(CvGlobals* self, BuildTypes eBuildNum, CvBuildInfo*& result);static CvBuildInfo* ReplaceCvGlobals_getBuildInfo_with_BuildTypes(CvBuildInfo* (*original)(CvGlobals*, BuildTypes), CvGlobals* self, BuildTypes eBuildNum);CivRegisterBefore<CivHooks::CvGlobals_getBuildInfo_with_BuildTypes>(host, &BeforeCvGlobals_getBuildInfo_with_BuildTypes);CivRegisterAfter<CivHooks::CvGlobals_getBuildInfo_with_BuildTypes>(host, &AfterCvGlobals_getBuildInfo_with_BuildTypes);CivRegisterReplace<CivHooks::CvGlobals_getBuildInfo_with_BuildTypes>(host, &ReplaceCvGlobals_getBuildInfo_with_BuildTypes);
Code
3198CvBuildInfo* CvGlobals::getBuildInfo(BuildTypes eBuildNum)3199{3200 CvAssert(eBuildNum > -1);3201 CvAssert(eBuildNum < GC.getNumBuildInfos());3202 if(eBuildNum > -1 && eBuildNum < (int)m_paBuildInfo.size())3203 return m_paBuildInfo[eBuildNum];3204 else3205 return NULL;3206}
Calls
std::vector::operator[]std::vector::size
Called by
60 functions in 19 files
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvBuilderTaskingAI::AddChopDirectives(CvUnit *, CvPlot *, int)
- CvBuilderTaskingAI::AddImprovingPlotsDirectives(CvUnit *, CvPlot *, int)
- CvBuilderTaskingAI::AddImprovingResourcesDirectives(CvUnit *, CvPlot *, int)
- CvBuilderTaskingAI::AddRemoveUselessRoadDirectives(CvUnit *, CvPlot *, int)
- CvBuilderTaskingAI::AddRouteDirectives(CvUnit *, CvPlot *, int)
- CvBuilderTaskingAI::GetBuildTimeWeight(CvUnit *, CvPlot *, BuildTypes, bool, int)
- CvBuilderTaskingAI::GetBuildTypeFromImprovement(ImprovementTypes)
- CvBuilderTaskingAI::GetFalloutRemove()
- CvBuilderTaskingAI::GetRepairBuild()
- CvBuilderTaskingAI::Init(CvPlayer *)
- CvBuilderTaskingAI::LogDirective(BuilderDirective, CvUnit *, int, bool)
- CvBuilderTaskingAI::UpdateRoutePlots()
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CityStrategyAIHelpers::IsTestCityStrategy_NeedTileImprovers(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_WantTileImprovers(AICityStrategyTypes, CvCity *)
- CvDllGameContext::GetBuildInfo(BuildTypes)
- CvDllDatabaseUtility::SetGlobalActionInfo()
- EconomicAIHelpers::IsTestStrategy_NeedImprovement(CvPlayer *, YieldTypes)
- CvGame::DoGameStarted()
- CvGame::handleAction(int)
- CvHomelandAI::ExecuteGeneralMoves()
- CvHomelandAI::FindHomelandTargets()
- BuildArrayHelpers::Write(FDataStream &, short *, int)
- CvActionInfo::getHotkeyInfo() const
- CvActionInfo::getMissionType() const
- CvInfosSerializationHelper::Write(FDataStream &, const BuildTypes)
- CvInfosSerializationHelper::WriteHashed(FDataStream &, const BuildTypes)
- CvPlayer::IsBuildBlockedByFeature(BuildTypes, FeatureTypes) const
- CvPlayer::canBuild(const CvPlot *, BuildTypes, bool, bool, bool, bool) const
- CvPlayer::canReceiveGoody(CvPlot *, GoodyTypes, CvUnit *) const
- CvPlayer::doAdvancedStartAction(AdvancedStartActionTypes, int, int, int, bool)
- CvPlayer::getAdvancedStartImprovementCost(ImprovementTypes, bool, CvPlot *)
- CvPlayer::getAdvancedStartRouteCost(RouteTypes, bool, CvPlot *)
- CvPlayer::getBestRoute(CvPlot *) const
- CvPlayer::getBuildCost(const CvPlot *, BuildTypes) const
- CvPlot::SilentlyResetAllBuildProgress()
- CvPlot::canBuild(BuildTypes, PlayerTypes, bool, bool) const
- CvPlot::changeBuildProgress(BuildTypes, int, PlayerTypes)
- CvPlot::getBuildTime(BuildTypes, PlayerTypes) const
- CvPlot::getFeatureProduction(BuildTypes, PlayerTypes, CvCity **) const
- CvPlot::getImprovementTypeNeededToImproveResource(PlayerTypes, bool)
- CvPlot::getYieldWithBuild(BuildTypes, YieldTypes, bool, PlayerTypes) const
- CvPlot::updateLayout(bool)
- CvTeam::DoUpdateBestRoute()
- CvTeam::processTech(TechTypes, int)
- CvPlayerTechs::Reset()
- CvPlayerTechs::SetLocalePriorities()
- CvUnit::GetBestBuildRoute(CvPlot *, BuildTypes *) const
- CvUnit::LogWorkerEvent(BuildTypes, bool)
- CvUnit::UnitBuild(BuildTypes)
- CvUnit::build(BuildTypes)
- CvUnit::canBuild(const CvPlot *, BuildTypes, bool, bool) const
- CvUnit::canBuildRoute() const
- CvUnit::getBuildType() const
- CvUnit::pillage()
- CvUnitMission::PopMission(UnitHandle)
- CvUnitMission::PushMission(UnitHandle, MissionTypes, int, int, int, bool, bool, MissionAITypes, CvPlot *, CvUnit *)
- CvLuaPlayer::lGetUnimprovedAvailableLuxuryResource(lua_State *)
- CvLuaPlot::lIsBuildRemovesFeature(lua_State *)