Bazaar developer reference

CvDiplomacyAI::GetRecentTradeValue(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 7970
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetRecentTradeValue

Hooks

static bool BeforeCvDiplomacyAI_GetRecentTradeValue(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetRecentTradeValue(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetRecentTradeValue(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetRecentTradeValue>(host, &BeforeCvDiplomacyAI_GetRecentTradeValue);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetRecentTradeValue>(host, &AfterCvDiplomacyAI_GetRecentTradeValue);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetRecentTradeValue>(host, &ReplaceCvDiplomacyAI_GetRecentTradeValue);

Code

7969/// Return value of recent trades7970int CvDiplomacyAI::GetRecentTradeValue(PlayerTypes ePlayer)7971{7972	return m_paiTradeValue[(int)ePlayer];7973}

Called by