Bazaar developer reference

CvEconomicAI::GetPlayer()

Defined in
CvEconomicAI.cpp, line 485
Class
CvEconomicAI
Hook name
CivHooks::CvEconomicAI_GetPlayer

Hooks

static bool BeforeCvEconomicAI_GetPlayer(CvEconomicAI* self, CvPlayer*& result);static void AfterCvEconomicAI_GetPlayer(CvEconomicAI* self, CvPlayer*& result);static CvPlayer* ReplaceCvEconomicAI_GetPlayer(CvPlayer* (*original)(CvEconomicAI*), CvEconomicAI* self);CivRegisterBefore<CivHooks::CvEconomicAI_GetPlayer>(host, &BeforeCvEconomicAI_GetPlayer);CivRegisterAfter<CivHooks::CvEconomicAI_GetPlayer>(host, &AfterCvEconomicAI_GetPlayer);CivRegisterReplace<CivHooks::CvEconomicAI_GetPlayer>(host, &ReplaceCvEconomicAI_GetPlayer);

Code

484/// Returns the Player object the Strategies are associated with485CvPlayer* CvEconomicAI::GetPlayer()486{487	return m_pPlayer;488}

Called by