Bazaar developer reference

CvDllDeal::GetOtherPlayer(PlayerTypes)

Defined in
CvDllDeal.cpp, line 80
Class
CvDllDeal
Hook name
CivHooks::CvDllDeal_GetOtherPlayer

Hooks

static bool BeforeCvDllDeal_GetOtherPlayer(CvDllDeal* self, PlayerTypes eFromPlayer, PlayerTypes& result);static void AfterCvDllDeal_GetOtherPlayer(CvDllDeal* self, PlayerTypes eFromPlayer, PlayerTypes& result);static PlayerTypes ReplaceCvDllDeal_GetOtherPlayer(PlayerTypes (*original)(CvDllDeal*, PlayerTypes), CvDllDeal* self, PlayerTypes eFromPlayer);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllDeal_GetOtherPlayer::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllDeal_GetOtherPlayer);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDeal_GetOtherPlayer::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllDeal_GetOtherPlayer);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDeal_GetOtherPlayer::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllDeal_GetOtherPlayer);

Code

80PlayerTypes CvDllDeal::GetOtherPlayer(PlayerTypes eFromPlayer)81{82	return m_pDeal->GetOtherPlayer(eFromPlayer);83}

Calls