Bazaar developer reference

CvDiplomacyAI::GetPlayer()

Defined in
CvDiplomacyAI.cpp, line 1832
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetPlayer

Hooks

static bool BeforeCvDiplomacyAI_GetPlayer(CvDiplomacyAI* self, CvPlayer*& result);static void AfterCvDiplomacyAI_GetPlayer(CvDiplomacyAI* self, CvPlayer*& result);static CvPlayer* ReplaceCvDiplomacyAI_GetPlayer(CvPlayer* (*original)(CvDiplomacyAI*), CvDiplomacyAI* self);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetPlayer>(host, &BeforeCvDiplomacyAI_GetPlayer);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetPlayer>(host, &AfterCvDiplomacyAI_GetPlayer);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetPlayer>(host, &ReplaceCvDiplomacyAI_GetPlayer);

Code

1831/// Returns the Player object this class is associated with1832CvPlayer* CvDiplomacyAI::GetPlayer()1833{1834	return m_pPlayer;1835}

Called by

137 functions in 1 files