Bazaar developer reference

CvDealAI::GetTeam()

Defined in
CvDealAI.cpp, line 79
Class
CvDealAI
Hook name
CivHooks::CvDealAI_GetTeam

Hooks

static bool BeforeCvDealAI_GetTeam(CvDealAI* self, TeamTypes& result);static void AfterCvDealAI_GetTeam(CvDealAI* self, TeamTypes& result);static TeamTypes ReplaceCvDealAI_GetTeam(TeamTypes (*original)(CvDealAI*), CvDealAI* self);CivRegisterBefore<CivHooks::CvDealAI_GetTeam>(host, &BeforeCvDealAI_GetTeam);CivRegisterAfter<CivHooks::CvDealAI_GetTeam>(host, &AfterCvDealAI_GetTeam);CivRegisterReplace<CivHooks::CvDealAI_GetTeam>(host, &ReplaceCvDealAI_GetTeam);

Code

78// Helper function which returns this player's TeamType79TeamTypes CvDealAI::GetTeam()80{81	return m_pPlayer->getTeam();82}

Calls

Called by