Bazaar developer reference

CvPromotionEntry::GetMoveDiscountChange() const

Defined in
CvPromotionClasses.cpp, line 980
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_GetMoveDiscountChange

Hooks

static bool BeforeCvPromotionEntry_GetMoveDiscountChange(const CvPromotionEntry* self, int& result);static void AfterCvPromotionEntry_GetMoveDiscountChange(const CvPromotionEntry* self, int& result);static int ReplaceCvPromotionEntry_GetMoveDiscountChange(int (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_GetMoveDiscountChange>(host, &BeforeCvPromotionEntry_GetMoveDiscountChange);CivRegisterAfter<CivHooks::CvPromotionEntry_GetMoveDiscountChange>(host, &AfterCvPromotionEntry_GetMoveDiscountChange);CivRegisterReplace<CivHooks::CvPromotionEntry_GetMoveDiscountChange>(host, &ReplaceCvPromotionEntry_GetMoveDiscountChange);

Code

979/// Accessor: How much movement is discounted980int CvPromotionEntry::GetMoveDiscountChange() const981{982	return m_iMoveDiscountChange;983}

Called by