Bazaar developer reference

CvPlayer::calculateUnitSupply() const

Defined in
CvPlayer.cpp, line 9798
Class
CvPlayer
Hook name
CivHooks::CvPlayer_calculateUnitSupply

Hooks

static bool BeforeCvPlayer_calculateUnitSupply(const CvPlayer* self, int& result);static void AfterCvPlayer_calculateUnitSupply(const CvPlayer* self, int& result);static int ReplaceCvPlayer_calculateUnitSupply(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_calculateUnitSupply>(host, &BeforeCvPlayer_calculateUnitSupply);CivRegisterAfter<CivHooks::CvPlayer_calculateUnitSupply>(host, &AfterCvPlayer_calculateUnitSupply);CivRegisterReplace<CivHooks::CvPlayer_calculateUnitSupply>(host, &ReplaceCvPlayer_calculateUnitSupply);

Code

9798int CvPlayer::calculateUnitSupply() const9799{9800	int iPaidUnits;9801	int iBaseSupplyCost;98029803	return GetTreasury()->CalculateUnitSupply(iPaidUnits, iBaseSupplyCost);9804}

Calls

Called by