Bazaar developer reference

CvBeliefEntry::GetYieldChangeNaturalWonder(int) const

Defined in
CvBeliefClasses.cpp, line 694
Class
CvBeliefEntry
Hook name
CivHooks::CvBeliefEntry_GetYieldChangeNaturalWonder

Hooks

static bool BeforeCvBeliefEntry_GetYieldChangeNaturalWonder(const CvBeliefEntry* self, int i, int& result);static void AfterCvBeliefEntry_GetYieldChangeNaturalWonder(const CvBeliefEntry* self, int i, int& result);static int ReplaceCvBeliefEntry_GetYieldChangeNaturalWonder(int (*original)(const CvBeliefEntry*, int), const CvBeliefEntry* self, int i);CivRegisterBefore<CivHooks::CvBeliefEntry_GetYieldChangeNaturalWonder>(host, &BeforeCvBeliefEntry_GetYieldChangeNaturalWonder);CivRegisterAfter<CivHooks::CvBeliefEntry_GetYieldChangeNaturalWonder>(host, &AfterCvBeliefEntry_GetYieldChangeNaturalWonder);CivRegisterReplace<CivHooks::CvBeliefEntry_GetYieldChangeNaturalWonder>(host, &ReplaceCvBeliefEntry_GetYieldChangeNaturalWonder);

Code

693/// Yield boost from a natural wonder694int CvBeliefEntry::GetYieldChangeNaturalWonder(int i) const695{696	CvAssertMsg(i < NUM_YIELD_TYPES, "Index out of bounds");697	CvAssertMsg(i > -1, "Index out of bounds");698	return m_piYieldChangeNaturalWonder ? m_piYieldChangeNaturalWonder[i] : -1;699}

Called by