CvPlayer::firstUnit(int *, bool) const
- Defined in
- CvPlayer.cpp, line 21828
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_firstUnit
Hooks
static bool BeforeCvPlayer_firstUnit(const CvPlayer* self, int* pIterIdx, bool bRev, const CvUnit*& result);static void AfterCvPlayer_firstUnit(const CvPlayer* self, int* pIterIdx, bool bRev, const CvUnit*& result);static const CvUnit* ReplaceCvPlayer_firstUnit(const CvUnit* (*original)(const CvPlayer*, int*, bool), const CvPlayer* self, int* pIterIdx, bool bRev);CivRegisterBefore<CivHooks::CvPlayer_firstUnit>(host, &BeforeCvPlayer_firstUnit);CivRegisterAfter<CivHooks::CvPlayer_firstUnit>(host, &AfterCvPlayer_firstUnit);CivRegisterReplace<CivHooks::CvPlayer_firstUnit>(host, &ReplaceCvPlayer_firstUnit);
Code
21828const CvUnit* CvPlayer::firstUnit(int* pIterIdx, bool bRev) const21829{21830 return !bRev ? m_units.BeginIter(pIterIdx) : m_units.EndIter(pIterIdx);21831}
Calls
FFreeListArrayBase::BeginIterFFreeListArrayBase::EndIter
Called by
- CvPlayer::GetCountReadyUnits() const
- CvPlayer::GetFirstReadyUnit() const
- CvPlayer::GetNumMaintenanceFreeUnits(DomainTypes, bool) const
- CvPlayer::GetNumUnitsOutOfSupply() const
- CvPlayer::calculateMilitaryMight() const
- CvPlayer::getBusyUnit() const
- CvPlayer::hasAutoUnit() const
- CvPlayer::hasBusyUnit() const
- CvPlayer::hasPromotableUnit() const
- CvPlayer::hasReadyUnit() const
- CvPlayer::hasUnitsThatNeedAIUpdate() const
- CvPlayer::unitsGoldenAgeCapable() const
- CvPlayer::unitsGoldenAgeReady() const