Bazaar developer reference

CvPlayer::GetUnitUpgradeCostMod() const

Defined in
CvPlayer.cpp, line 13210
Class
CvPlayer
Hook name
CivHooks::CvPlayer_GetUnitUpgradeCostMod

Hooks

static bool BeforeCvPlayer_GetUnitUpgradeCostMod(const CvPlayer* self, int& result);static void AfterCvPlayer_GetUnitUpgradeCostMod(const CvPlayer* self, int& result);static int ReplaceCvPlayer_GetUnitUpgradeCostMod(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetUnitUpgradeCostMod>(host, &BeforeCvPlayer_GetUnitUpgradeCostMod);CivRegisterAfter<CivHooks::CvPlayer_GetUnitUpgradeCostMod>(host, &AfterCvPlayer_GetUnitUpgradeCostMod);CivRegisterReplace<CivHooks::CvPlayer_GetUnitUpgradeCostMod>(host, &ReplaceCvPlayer_GetUnitUpgradeCostMod);

Code

13209/// Unit upgrade cost mod13210int CvPlayer::GetUnitUpgradeCostMod() const13211{13212	return m_iUnitUpgradeCostMod;13213}

Calls

Called by