Bazaar developer reference

CvDiplomacyAI::GetLoyalty() const

Defined in
CvDiplomacyAI.cpp, line 9578
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetLoyalty

Hooks

static bool BeforeCvDiplomacyAI_GetLoyalty(const CvDiplomacyAI* self, int& result);static void AfterCvDiplomacyAI_GetLoyalty(const CvDiplomacyAI* self, int& result);static int ReplaceCvDiplomacyAI_GetLoyalty(int (*original)(const CvDiplomacyAI*), const CvDiplomacyAI* self);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetLoyalty>(host, &BeforeCvDiplomacyAI_GetLoyalty);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetLoyalty>(host, &AfterCvDiplomacyAI_GetLoyalty);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetLoyalty>(host, &ReplaceCvDiplomacyAI_GetLoyalty);

Code

9577/// How willing is this AI to backstab its friends?9578int CvDiplomacyAI::GetLoyalty() const9579{9580	return m_iLoyalty;9581}

Called by