Bazaar developer reference

CvDiplomacyAI::GetDenouncedThemScore(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 23981
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetDenouncedThemScore

Hooks

static bool BeforeCvDiplomacyAI_GetDenouncedThemScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetDenouncedThemScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetDenouncedThemScore(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetDenouncedThemScore>(host, &BeforeCvDiplomacyAI_GetDenouncedThemScore);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetDenouncedThemScore>(host, &AfterCvDiplomacyAI_GetDenouncedThemScore);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetDenouncedThemScore>(host, &ReplaceCvDiplomacyAI_GetDenouncedThemScore);

Code

23981int CvDiplomacyAI::GetDenouncedThemScore(PlayerTypes ePlayer)23982{23983	int iOpinionWeight = 0;23984	// We denounced them23985	if(IsDenouncedPlayer(ePlayer))23986		iOpinionWeight += /*35*/ GC.getOPINION_WEIGHT_DENOUNCED_THEM();23987	return iOpinionWeight;23988}

Calls

Called by