Bazaar developer reference

CvMilitaryAI::GetPlayer()

Defined in
CvMilitaryAI.cpp, line 420
Class
CvMilitaryAI
Hook name
CivHooks::CvMilitaryAI_GetPlayer

Hooks

static bool BeforeCvMilitaryAI_GetPlayer(CvMilitaryAI* self, CvPlayer*& result);static void AfterCvMilitaryAI_GetPlayer(CvMilitaryAI* self, CvPlayer*& result);static CvPlayer* ReplaceCvMilitaryAI_GetPlayer(CvPlayer* (*original)(CvMilitaryAI*), CvMilitaryAI* self);CivRegisterBefore<CivHooks::CvMilitaryAI_GetPlayer>(host, &BeforeCvMilitaryAI_GetPlayer);CivRegisterAfter<CivHooks::CvMilitaryAI_GetPlayer>(host, &AfterCvMilitaryAI_GetPlayer);CivRegisterReplace<CivHooks::CvMilitaryAI_GetPlayer>(host, &ReplaceCvMilitaryAI_GetPlayer);

Code

419/// Returns the Player object the Strategies are associated with420CvPlayer* CvMilitaryAI::GetPlayer()421{422	return m_pPlayer;423}

Called by