CvUnitEntry::IsFoundAbroad() const
- Defined in
- CvUnitClasses.cpp, line 977
- Class
- CvUnitEntry
- Hook name
CivHooks::CvUnitEntry_IsFoundAbroad
Hooks
static bool BeforeCvUnitEntry_IsFoundAbroad(const CvUnitEntry* self, bool& result);static void AfterCvUnitEntry_IsFoundAbroad(const CvUnitEntry* self, bool& result);static bool ReplaceCvUnitEntry_IsFoundAbroad(bool (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_IsFoundAbroad>(host, &BeforeCvUnitEntry_IsFoundAbroad);CivRegisterAfter<CivHooks::CvUnitEntry_IsFoundAbroad>(host, &AfterCvUnitEntry_IsFoundAbroad);CivRegisterReplace<CivHooks::CvUnitEntry_IsFoundAbroad>(host, &ReplaceCvUnitEntry_IsFoundAbroad);
Code
976/// Can it start a city on a continent other than one with capital?977bool CvUnitEntry::IsFoundAbroad() const978{979 return m_bFoundAbroad;980}
Called by
- CvCity::canTrain(UnitTypes, bool, bool, bool, bool, CvString *) const
- CvPlayer::canReceiveGoody(CvPlot *, GoodyTypes, CvUnit *) const
- CvPlayer::canTrain(UnitTypes, bool, bool, bool, bool, CvString *) const
- CvUnit::IsFoundAbroad() const
- CvUnit::canFound(const CvPlot *, bool) const
- CvUnit::initWithNameOffset(int, UnitTypes, int, UnitAITypes, PlayerTypes, int, int, DirectionTypes, bool, bool, int, int)