Bazaar developer reference

CvPlayer::calculateGoldRateTimes100() const

Defined in
CvPlayer.cpp, line 9900
Class
CvPlayer
Hook name
CivHooks::CvPlayer_calculateGoldRateTimes100

Hooks

static bool BeforeCvPlayer_calculateGoldRateTimes100(const CvPlayer* self, int& result);static void AfterCvPlayer_calculateGoldRateTimes100(const CvPlayer* self, int& result);static int ReplaceCvPlayer_calculateGoldRateTimes100(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_calculateGoldRateTimes100>(host, &BeforeCvPlayer_calculateGoldRateTimes100);CivRegisterAfter<CivHooks::CvPlayer_calculateGoldRateTimes100>(host, &AfterCvPlayer_calculateGoldRateTimes100);CivRegisterReplace<CivHooks::CvPlayer_calculateGoldRateTimes100>(host, &ReplaceCvPlayer_calculateGoldRateTimes100);

Code

9900int CvPlayer::calculateGoldRateTimes100() const9901{9902	// If we're in anarchy, then no Gold is collected!9903	if(IsAnarchy())9904	{9905		return 0;9906	}99079908	int iRate = 0;99099910	iRate = GetTreasury()->CalculateBaseNetGoldTimes100();99119912	return iRate;9913}

Calls

Called by