Bazaar developer reference

CvDllPlayer::GetMinorCivType() const

Defined in
CvDllPlayer.cpp, line 376
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetMinorCivType

Hooks

static bool BeforeCvDllPlayer_GetMinorCivType(const CvDllPlayer* self, MinorCivTypes& result);static void AfterCvDllPlayer_GetMinorCivType(const CvDllPlayer* self, MinorCivTypes& result);static MinorCivTypes ReplaceCvDllPlayer_GetMinorCivType(MinorCivTypes (*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_GetMinorCivType::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetMinorCivType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetMinorCivType::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetMinorCivType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetMinorCivType::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetMinorCivType);

Code

376MinorCivTypes CvDllPlayer::GetMinorCivType() const377{378	MinorCivTypes eType = NO_MINORCIV;379	CvMinorCivAI* pAI = m_pPlayer->GetMinorCivAI();380	if(pAI != NULL)381	{382		eType = pAI->GetMinorCivType();383	}384385	return eType;386}

Calls