CvUnitEntry::GetRange() const
- Defined in
- CvUnitClasses.cpp, line 585
- Class
- CvUnitEntry
- Hook name
CivHooks::CvUnitEntry_GetRange
Hooks
static bool BeforeCvUnitEntry_GetRange(const CvUnitEntry* self, int& result);static void AfterCvUnitEntry_GetRange(const CvUnitEntry* self, int& result);static int ReplaceCvUnitEntry_GetRange(int (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_GetRange>(host, &BeforeCvUnitEntry_GetRange);CivRegisterAfter<CivHooks::CvUnitEntry_GetRange>(host, &AfterCvUnitEntry_GetRange);CivRegisterReplace<CivHooks::CvUnitEntry_GetRange>(host, &ReplaceCvUnitEntry_GetRange);
Code
584/// Air mission range585int CvUnitEntry::GetRange() const586{587 return m_iRange;588}
Called by
- CvBarbarians::GetRandomBarbarianUnitType(CvPlot *, UnitAITypes)
- CvCity::CanPlaceUnitHere(UnitTypes)
- CvGame::GetCompetitiveSpawnUnitType(PlayerTypes, bool, bool, bool)
- CvGame::GetRandomSpawnUnitType(PlayerTypes, bool, bool)
- CvGame::GetRandomUniqueUnitType(bool, bool, bool, bool)
- PUF_isFiniteRange(const CvUnit *, int, int)
- CvGameQueries::AreUnitsSameType(UnitTypes, UnitTypes)
- CvUnit::GetRange() const