CvPlayer::GetCitySpecializationAI() const
- Defined in
- CvPlayer.cpp, line 24517
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_GetCitySpecializationAI
Hooks
static bool BeforeCvPlayer_GetCitySpecializationAI(const CvPlayer* self, CvCitySpecializationAI*& result);static void AfterCvPlayer_GetCitySpecializationAI(const CvPlayer* self, CvCitySpecializationAI*& result);static CvCitySpecializationAI* ReplaceCvPlayer_GetCitySpecializationAI(CvCitySpecializationAI* (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetCitySpecializationAI>(host, &BeforeCvPlayer_GetCitySpecializationAI);CivRegisterAfter<CivHooks::CvPlayer_GetCitySpecializationAI>(host, &AfterCvPlayer_GetCitySpecializationAI);CivRegisterReplace<CivHooks::CvPlayer_GetCitySpecializationAI>(host, &ReplaceCvPlayer_GetCitySpecializationAI);
Code
24517CvCitySpecializationAI* CvPlayer::GetCitySpecializationAI() const24518{24519 return m_pCitySpecializationAI;24520}
Called by
- CvCity::BuyPlot(int, int)
- CvCity::DoJONSCultureLevelIncrease()
- CvCity::popOrder(int, bool, bool)
- CvCity::reset(int, PlayerTypes, int, int, bool)
- CvCityAI::AI_chooseProduction(bool)
- CvCityCitizens::DoTurn()
- CvDiplomacyAI::DeclareWar(PlayerTypes)
- CvDiplomacyAI::DoFromUIDiploEvent(PlayerTypes, FromUIDiploEventTypes, int, int)
- CvDiplomacyAI::DoSomeoneDeclaredWarOnMe(TeamTypes)
- EconomicAIHelpers::IsTestStrategy_HaltGrowthBuildings(CvPlayer *)
- CvGrandStrategyAI::DoTurn()
- CvHomelandAI::ExecuteEngineerMoves()
- CvMilitaryAI::UseStrategy(MilitaryAIStrategyTypes, bool)
- CvPlayer::acquireCity(CvCity *, bool, bool, bool)
- CvPlayer::doTurnPostDiplomacy()
- CvPlayer::found(int, int, ReligionTypes)
- CvCitySiteEvaluator::ComputeFlavorMultipliers(CvPlayer *)
- CvTeamTechs::SetResearchProgressTimes100(TechTypes, int, PlayerTypes, int, int)
- CvTradeAI::PrioritizeTradeRoutes(TradeConnectionList &)
- CvWonderProductionAI::ChooseWonder(bool, bool, int &)
- CvWonderProductionAI::ChooseWonderForGreatEngineer(bool, int &, CvCity *&)
- CvWonderProductionAI::LogPossibleWonders()