Bazaar developer reference

CvPromotionEntry::GetNeutralDamage() const

Defined in
CvPromotionClasses.cpp, line 1088
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_GetNeutralDamage

Hooks

static bool BeforeCvPromotionEntry_GetNeutralDamage(const CvPromotionEntry* self, int& result);static void AfterCvPromotionEntry_GetNeutralDamage(const CvPromotionEntry* self, int& result);static int ReplaceCvPromotionEntry_GetNeutralDamage(int (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_GetNeutralDamage>(host, &BeforeCvPromotionEntry_GetNeutralDamage);CivRegisterAfter<CivHooks::CvPromotionEntry_GetNeutralDamage>(host, &AfterCvPromotionEntry_GetNeutralDamage);CivRegisterReplace<CivHooks::CvPromotionEntry_GetNeutralDamage>(host, &ReplaceCvPromotionEntry_GetNeutralDamage);

Code

1087/// Accessor: Amount of damage taken by being in neutral lands1088int CvPromotionEntry::GetNeutralDamage() const1089{1090	return m_iNeutralDamage;1091}

Called by