CvUnit::GetOriginalOwner() const
- Defined in
- CvUnit.cpp, line 19689
- Class
- CvUnit
- Hook name
CivHooks::CvUnit_GetOriginalOwner
Hooks
static bool BeforeCvUnit_GetOriginalOwner(const CvUnit* self, PlayerTypes& result);static void AfterCvUnit_GetOriginalOwner(const CvUnit* self, PlayerTypes& result);static PlayerTypes ReplaceCvUnit_GetOriginalOwner(PlayerTypes (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_GetOriginalOwner>(host, &BeforeCvUnit_GetOriginalOwner);CivRegisterAfter<CivHooks::CvUnit_GetOriginalOwner>(host, &AfterCvUnit_GetOriginalOwner);CivRegisterReplace<CivHooks::CvUnit_GetOriginalOwner>(host, &ReplaceCvUnit_GetOriginalOwner);
Code
19689PlayerTypes CvUnit::GetOriginalOwner() const19690{19691 return m_eOriginalOwner;19692}
Calls
FAutoVariable::operator const PlayerTypes &
Called by
- CvAIOperationDestroyBarbarianCamp::FindBestTarget()
- CvAIOperationDestroyBarbarianCamp::ShouldAbort()
- CvGame::PopulateDigSite(CvPlot &, EraTypes, GreatWorkArtifactClass)
- CvMilitaryAI::UpdateOperations()
- MilitaryAIHelpers::IsTestStrategy_EradicateBarbarians(MilitaryAIStrategyTypes, CvPlayer *, int, int)
- CvUnit::getCaptureDefinition(CvUnitCaptureDefinition *, PlayerTypes)
- CvLuaUnit::lGetOriginalOwner(lua_State *)