Bazaar developer reference

CvDllGameDeals::ProposedDealExists(PlayerTypes, PlayerTypes)

Defined in
CvDllGameDeals.cpp, line 117
Class
CvDllGameDeals
Hook name
CivHooks::CvDllGameDeals_ProposedDealExists

Hooks

static bool BeforeCvDllGameDeals_ProposedDealExists(CvDllGameDeals* self, PlayerTypes eFromPlayer, PlayerTypes eToPlayer, bool& result);static void AfterCvDllGameDeals_ProposedDealExists(CvDllGameDeals* self, PlayerTypes eFromPlayer, PlayerTypes eToPlayer, bool& result);static bool ReplaceCvDllGameDeals_ProposedDealExists(bool (*original)(CvDllGameDeals*, PlayerTypes, PlayerTypes), CvDllGameDeals* self, PlayerTypes eFromPlayer, PlayerTypes eToPlayer);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameDeals_ProposedDealExists::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameDeals_ProposedDealExists);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameDeals_ProposedDealExists::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameDeals_ProposedDealExists);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameDeals_ProposedDealExists::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameDeals_ProposedDealExists);

Code

117bool CvDllGameDeals::ProposedDealExists(PlayerTypes eFromPlayer, PlayerTypes eToPlayer)118{119#if defined(MOD_AI_MP_DIPLOMACY)120	if (MOD_AI_MP_DIPLOMACY)121		return m_pGameDeals->GetProposedDeal(eFromPlayer, eToPlayer, 0) != NULL;122	else123#endif124	return m_pGameDeals->ProposedDealExists(eFromPlayer, eToPlayer);125}

Calls