Bazaar developer reference

CvPromotionEntry::IsEnemyRoute() const

Defined in
CvPromotionClasses.cpp, line 1454
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_IsEnemyRoute

Hooks

static bool BeforeCvPromotionEntry_IsEnemyRoute(const CvPromotionEntry* self, bool& result);static void AfterCvPromotionEntry_IsEnemyRoute(const CvPromotionEntry* self, bool& result);static bool ReplaceCvPromotionEntry_IsEnemyRoute(bool (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_IsEnemyRoute>(host, &BeforeCvPromotionEntry_IsEnemyRoute);CivRegisterAfter<CivHooks::CvPromotionEntry_IsEnemyRoute>(host, &AfterCvPromotionEntry_IsEnemyRoute);CivRegisterReplace<CivHooks::CvPromotionEntry_IsEnemyRoute>(host, &ReplaceCvPromotionEntry_IsEnemyRoute);

Code

1453/// Accessor: Can this unit use enemy roads?1454bool CvPromotionEntry::IsEnemyRoute() const1455{1456	return m_bEnemyRoute;1457}

Called by