Bazaar developer reference

CvTraitEntry::IsEmbarkedToLandFlatCost() const

Defined in
CvTraitClasses.cpp, line 684
Class
CvTraitEntry
Hook name
CivHooks::CvTraitEntry_IsEmbarkedToLandFlatCost

Hooks

static bool BeforeCvTraitEntry_IsEmbarkedToLandFlatCost(const CvTraitEntry* self, bool& result);static void AfterCvTraitEntry_IsEmbarkedToLandFlatCost(const CvTraitEntry* self, bool& result);static bool ReplaceCvTraitEntry_IsEmbarkedToLandFlatCost(bool (*original)(const CvTraitEntry*), const CvTraitEntry* self);CivRegisterBefore<CivHooks::CvTraitEntry_IsEmbarkedToLandFlatCost>(host, &BeforeCvTraitEntry_IsEmbarkedToLandFlatCost);CivRegisterAfter<CivHooks::CvTraitEntry_IsEmbarkedToLandFlatCost>(host, &AfterCvTraitEntry_IsEmbarkedToLandFlatCost);CivRegisterReplace<CivHooks::CvTraitEntry_IsEmbarkedToLandFlatCost>(host, &ReplaceCvTraitEntry_IsEmbarkedToLandFlatCost);

Code

683/// Accessor:: are our embarked units able to move to land for 1 MP?684bool CvTraitEntry::IsEmbarkedToLandFlatCost() const685{686	return m_bEmbarkedToLandFlatCost;687}

Called by