Bazaar developer reference

CvPlayer::GetUnitProductionMaintenanceMod() const

Defined in
CvPlayer.cpp, line 9666
Class
CvPlayer
Hook name
CivHooks::CvPlayer_GetUnitProductionMaintenanceMod

Hooks

static bool BeforeCvPlayer_GetUnitProductionMaintenanceMod(const CvPlayer* self, int& result);static void AfterCvPlayer_GetUnitProductionMaintenanceMod(const CvPlayer* self, int& result);static int ReplaceCvPlayer_GetUnitProductionMaintenanceMod(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetUnitProductionMaintenanceMod>(host, &BeforeCvPlayer_GetUnitProductionMaintenanceMod);CivRegisterAfter<CivHooks::CvPlayer_GetUnitProductionMaintenanceMod>(host, &AfterCvPlayer_GetUnitProductionMaintenanceMod);CivRegisterReplace<CivHooks::CvPlayer_GetUnitProductionMaintenanceMod>(host, &ReplaceCvPlayer_GetUnitProductionMaintenanceMod);

Code

9665/// How much does Production is being eaten up by Units? (cached)9666int CvPlayer::GetUnitProductionMaintenanceMod() const9667{9668	// Kind of a cop-out, but it fixes some bugs for now9669	return calculateUnitProductionMaintenanceMod();9670}

Calls

Called by