Bazaar developer reference

CvPromotionEntry::IsCaptureDefeatedEnemy() const

Defined in
CvPromotionClasses.cpp, line 1716
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_IsCaptureDefeatedEnemy

Hooks

static bool BeforeCvPromotionEntry_IsCaptureDefeatedEnemy(const CvPromotionEntry* self, bool& result);static void AfterCvPromotionEntry_IsCaptureDefeatedEnemy(const CvPromotionEntry* self, bool& result);static bool ReplaceCvPromotionEntry_IsCaptureDefeatedEnemy(bool (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_IsCaptureDefeatedEnemy>(host, &BeforeCvPromotionEntry_IsCaptureDefeatedEnemy);CivRegisterAfter<CivHooks::CvPromotionEntry_IsCaptureDefeatedEnemy>(host, &AfterCvPromotionEntry_IsCaptureDefeatedEnemy);CivRegisterReplace<CivHooks::CvPromotionEntry_IsCaptureDefeatedEnemy>(host, &ReplaceCvPromotionEntry_IsCaptureDefeatedEnemy);

Code

1715/// Accessor: Is a defeated enemy captured?1716bool CvPromotionEntry::IsCaptureDefeatedEnemy() const1717{1718	return m_bCaptureDefeatedEnemy;1719}

Called by