Bazaar developer reference

CvPromotionEntry::IsRiver() const

Defined in
CvPromotionClasses.cpp, line 1448
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_IsRiver

Hooks

static bool BeforeCvPromotionEntry_IsRiver(const CvPromotionEntry* self, bool& result);static void AfterCvPromotionEntry_IsRiver(const CvPromotionEntry* self, bool& result);static bool ReplaceCvPromotionEntry_IsRiver(bool (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_IsRiver>(host, &BeforeCvPromotionEntry_IsRiver);CivRegisterAfter<CivHooks::CvPromotionEntry_IsRiver>(host, &AfterCvPromotionEntry_IsRiver);CivRegisterReplace<CivHooks::CvPromotionEntry_IsRiver>(host, &ReplaceCvPromotionEntry_IsRiver);

Code

1447/// Accessor: Can this unit attack across rivers without penalty?1448bool CvPromotionEntry::IsRiver() const1449{1450	return m_bRiver;1451}

Called by