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
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvBuilderTaskingAI::ConnectCitiesToCapital(CvCity *, CvCity *, RouteTypes)
- CityStrategyAIHelpers::IsTestCityStrategy_WantTileImprovers(AICityStrategyTypes, CvCity *)
- CvDealAI::DoAddGPTToThem(CvDeal *, PlayerTypes, bool, int &, int &, int &, int, bool)
- CvDealAI::DoAddGPTToUs(CvDeal *, PlayerTypes, bool, int &, int &, int &, int, bool)
- CvDealAI::DoAddItemsToDealForPeaceTreaty(PlayerTypes, CvDeal *, PeaceTreatyTypes, bool)
- CvDeal::IsPossibleToTradeItem(PlayerTypes, PlayerTypes, TradeableItems, int, int, int, bool, bool, bool)
- CvDiplomacyAI::DoContactMinorCivs()
- CvDiplomacyAI::GetBestApproachTowardsMajorCiv(PlayerTypes, int &, bool, bool, WarFaceTypes &)
- CvDiplomacyAI::GetBestApproachTowardsMinorCiv(PlayerTypes, int &, bool, bool)
- CvDiplomacyAI::GetCoopWarScore(PlayerTypes, PlayerTypes, bool)
- CvDiplomacyAI::IsGoldRequest(PlayerTypes, CvDeal *, int &)
- CvLuaPlayer::lCalculateGoldRate(lua_State *)