Bazaar developer reference

CvMinorCivAI::GetPlayer()

Defined in
CvMinorCivAI.cpp, line 2175
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_GetPlayer

Hooks

static bool BeforeCvMinorCivAI_GetPlayer(CvMinorCivAI* self, CvPlayer*& result);static void AfterCvMinorCivAI_GetPlayer(CvMinorCivAI* self, CvPlayer*& result);static CvPlayer* ReplaceCvMinorCivAI_GetPlayer(CvPlayer* (*original)(CvMinorCivAI*), CvMinorCivAI* self);CivRegisterBefore<CivHooks::CvMinorCivAI_GetPlayer>(host, &BeforeCvMinorCivAI_GetPlayer);CivRegisterAfter<CivHooks::CvMinorCivAI_GetPlayer>(host, &AfterCvMinorCivAI_GetPlayer);CivRegisterReplace<CivHooks::CvMinorCivAI_GetPlayer>(host, &ReplaceCvMinorCivAI_GetPlayer);

Code

2174/// Returns the Player object this MinorCivAI is associated with2175CvPlayer* CvMinorCivAI::GetPlayer()2176{2177	return m_pPlayer;2178}

Called by

66 functions in 1 files