Bazaar developer reference

CvDiplomacyAI::GetTeam()

Defined in
CvDiplomacyAI.cpp, line 1838
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetTeam

Hooks

static bool BeforeCvDiplomacyAI_GetTeam(CvDiplomacyAI* self, TeamTypes& result);static void AfterCvDiplomacyAI_GetTeam(CvDiplomacyAI* self, TeamTypes& result);static TeamTypes ReplaceCvDiplomacyAI_GetTeam(TeamTypes (*original)(CvDiplomacyAI*), CvDiplomacyAI* self);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetTeam>(host, &BeforeCvDiplomacyAI_GetTeam);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetTeam>(host, &AfterCvDiplomacyAI_GetTeam);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetTeam>(host, &ReplaceCvDiplomacyAI_GetTeam);

Code

1837/// Returns the Team ID this AI's player is associated with1838TeamTypes CvDiplomacyAI::GetTeam()1839{1840	return m_pPlayer->getTeam();1841}

Calls

Called by