CvPlayer::GetHomelandAI() const
- Defined in
- CvPlayer.cpp, line 13305
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_GetHomelandAI
Hooks
static bool BeforeCvPlayer_GetHomelandAI(const CvPlayer* self, CvHomelandAI*& result);static void AfterCvPlayer_GetHomelandAI(const CvPlayer* self, CvHomelandAI*& result);static CvHomelandAI* ReplaceCvPlayer_GetHomelandAI(CvHomelandAI* (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetHomelandAI>(host, &BeforeCvPlayer_GetHomelandAI);CivRegisterAfter<CivHooks::CvPlayer_GetHomelandAI>(host, &AfterCvPlayer_GetHomelandAI);CivRegisterReplace<CivHooks::CvPlayer_GetHomelandAI>(host, &ReplaceCvPlayer_GetHomelandAI);
Code
13305CvHomelandAI* CvPlayer::GetHomelandAI() const13306{13307 return m_pHomelandAI;13308}
Called by
- CvBeliefHelpers::ConvertBarbarianUnit(const CvUnit *, UnitHandle)
- CvCity::CreateUnit(UnitTypes, UnitAITypes, bool)
- CvEconomicAI::DisbandLongObsoleteUnits()
- CvEconomicAI::DoHurry()
- CvEconomicAI::DoPlotPurchases()
- CvEconomicAI::DoReconState()
- CvEconomicAI::LogScrapUnit(UnitHandle, int, int, int, int)
- CvPlayerAI::AI_unitUpdate()
- CvPlayerTraits::ConvertBarbarianCamp(CvUnit *, CvPlot *)
- CvPlayerTraits::ConvertBarbarianNavalUnit(CvUnit *, UnitHandle)
- CvUnit::CanAutomate(AutomateTypes, bool) const
- CvUnit::jumpToNearestValidPlot()
- CvUnit::jumpToNearestValidPlotWithinRange(int)
- CvLuaUnit::lExecuteSpecialExploreMove(lua_State *)