Bazaar developer reference

CvDiplomacyAI::GetDenouncedUsScore(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 23972
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetDenouncedUsScore

Hooks

static bool BeforeCvDiplomacyAI_GetDenouncedUsScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetDenouncedUsScore(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetDenouncedUsScore(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetDenouncedUsScore>(host, &BeforeCvDiplomacyAI_GetDenouncedUsScore);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetDenouncedUsScore>(host, &AfterCvDiplomacyAI_GetDenouncedUsScore);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetDenouncedUsScore>(host, &ReplaceCvDiplomacyAI_GetDenouncedUsScore);

Code

23972int CvDiplomacyAI::GetDenouncedUsScore(PlayerTypes ePlayer)23973{23974	int iOpinionWeight = 0;23975	// They denounced us!23976	if(GET_PLAYER(ePlayer).GetDiplomacyAI()->IsDenouncedPlayer(GetPlayer()->GetID()))23977		iOpinionWeight += /*35*/ GC.getOPINION_WEIGHT_DENOUNCED_ME();23978	return iOpinionWeight;23979}

Calls

Called by