Bazaar developer reference

CvDealAI::GetPlayer()

Defined in
CvDealAI.cpp, line 73
Class
CvDealAI
Hook name
CivHooks::CvDealAI_GetPlayer

Hooks

static bool BeforeCvDealAI_GetPlayer(CvDealAI* self, CvPlayer*& result);static void AfterCvDealAI_GetPlayer(CvDealAI* self, CvPlayer*& result);static CvPlayer* ReplaceCvDealAI_GetPlayer(CvPlayer* (*original)(CvDealAI*), CvDealAI* self);CivRegisterBefore<CivHooks::CvDealAI_GetPlayer>(host, &BeforeCvDealAI_GetPlayer);CivRegisterAfter<CivHooks::CvDealAI_GetPlayer>(host, &AfterCvDealAI_GetPlayer);CivRegisterReplace<CivHooks::CvDealAI_GetPlayer>(host, &ReplaceCvDealAI_GetPlayer);

Code

72/// Returns the Player object this DealAI is associated with73CvPlayer* CvDealAI::GetPlayer()74{75	return m_pPlayer;76}

Called by

46 functions in 2 files