Bazaar developer reference

CvPlayer::calculateGoldRate() const

Defined in
CvPlayer.cpp, line 9893
Class
CvPlayer
Hook name
CivHooks::CvPlayer_calculateGoldRate

Hooks

static bool BeforeCvPlayer_calculateGoldRate(const CvPlayer* self, int& result);static void AfterCvPlayer_calculateGoldRate(const CvPlayer* self, int& result);static int ReplaceCvPlayer_calculateGoldRate(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_calculateGoldRate>(host, &BeforeCvPlayer_calculateGoldRate);CivRegisterAfter<CivHooks::CvPlayer_calculateGoldRate>(host, &AfterCvPlayer_calculateGoldRate);CivRegisterReplace<CivHooks::CvPlayer_calculateGoldRate>(host, &ReplaceCvPlayer_calculateGoldRate);

Code

9893int CvPlayer::calculateGoldRate() const9894{9895	return calculateGoldRateTimes100() / 100;9896}

Calls

Called by