Bazaar developer reference

CvDiplomacyAI::GetForgiveness() const

Defined in
CvDiplomacyAI.cpp, line 9590
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetForgiveness

Hooks

static bool BeforeCvDiplomacyAI_GetForgiveness(const CvDiplomacyAI* self, int& result);static void AfterCvDiplomacyAI_GetForgiveness(const CvDiplomacyAI* self, int& result);static int ReplaceCvDiplomacyAI_GetForgiveness(int (*original)(const CvDiplomacyAI*), const CvDiplomacyAI* self);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetForgiveness>(host, &BeforeCvDiplomacyAI_GetForgiveness);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetForgiveness>(host, &AfterCvDiplomacyAI_GetForgiveness);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetForgiveness>(host, &ReplaceCvDiplomacyAI_GetForgiveness);

Code

9589/// How willing is the AI to overlook transgressions between friends?9590int CvDiplomacyAI::GetForgiveness() const9591{9592	return m_iForgiveness;9593}

Called by