Bazaar developer reference

CvPlayer::GetUnitPurchaseCostModifier() const

Defined in
CvPlayer.cpp, line 26726
Class
CvPlayer
Hook name
CivHooks::CvPlayer_GetUnitPurchaseCostModifier

Hooks

static bool BeforeCvPlayer_GetUnitPurchaseCostModifier(const CvPlayer* self, int& result);static void AfterCvPlayer_GetUnitPurchaseCostModifier(const CvPlayer* self, int& result);static int ReplaceCvPlayer_GetUnitPurchaseCostModifier(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetUnitPurchaseCostModifier>(host, &BeforeCvPlayer_GetUnitPurchaseCostModifier);CivRegisterAfter<CivHooks::CvPlayer_GetUnitPurchaseCostModifier>(host, &AfterCvPlayer_GetUnitPurchaseCostModifier);CivRegisterReplace<CivHooks::CvPlayer_GetUnitPurchaseCostModifier>(host, &ReplaceCvPlayer_GetUnitPurchaseCostModifier);

Code

26725/// Cost of purchasing units modified?26726int CvPlayer::GetUnitPurchaseCostModifier() const26727{26728	return m_iUnitPurchaseCostModifier;26729}

Calls

Called by