Bazaar developer reference

CvDllPlayer::GetStartingPlot() const

Defined in
CvDllPlayer.cpp, line 161
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetStartingPlot

Hooks

static bool BeforeCvDllPlayer_GetStartingPlot(const CvDllPlayer* self, ICvPlot1*& result);static void AfterCvDllPlayer_GetStartingPlot(const CvDllPlayer* self, ICvPlot1*& result);static ICvPlot1* ReplaceCvDllPlayer_GetStartingPlot(ICvPlot1* (*original)(const CvDllPlayer*), const CvDllPlayer* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetStartingPlot::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetStartingPlot);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetStartingPlot::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetStartingPlot);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetStartingPlot::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetStartingPlot);

Code

161ICvPlot1* CvDllPlayer::GetStartingPlot() const162{163	CvPlot* pkPlot = m_pPlayer->getStartingPlot();164	return (NULL != pkPlot)? new CvDllPlot(pkPlot) : NULL;165}

Calls